This commit is contained in:
jopejoe1 2023-12-31 21:28:43 +01:00
parent f96243dbfb
commit 88ae1b258d
3 changed files with 10 additions and 1 deletions

View file

@ -5,7 +5,12 @@ in {
options.jopejoe1.root = { enable = lib.mkEnableOption "Enable root user"; };
config = lib.mkIf cfg.enable {
users.users.root = { initialPassword = "password"; };
users.users.root = { i
nitialPassword = "password";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh johannes@joens.email"
];
};
};
imports = [ ./home.nix ];
}