nix-conf/modules/users/root/default.nix

18 lines
437 B
Nix
Raw Normal View History

2023-12-30 23:39:33 +01:00
{ config, lib, ... }:
2023-08-21 18:40:42 +02:00
2023-12-30 23:39:33 +01:00
let cfg = config.jopejoe1.root;
in {
options.jopejoe1.root = { enable = lib.mkEnableOption "Enable root user"; };
2023-12-29 16:43:40 +01:00
config = lib.mkIf cfg.enable {
2023-12-31 21:28:43 +01:00
users.users.root = { i
nitialPassword = "password";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh johannes@joens.email"
];
};
2023-12-29 16:43:40 +01:00
};
2023-12-30 23:39:33 +01:00
imports = [ ./home.nix ];
2023-08-21 18:40:42 +02:00
}