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

View file

@ -59,6 +59,7 @@ in {
};
system.stateVersion = "24.05";
services.openssh.enable = enable;
};
}

View file

@ -13,6 +13,9 @@ in {
initialPassword = "password";
extraGroups = [ "wheel" "networkmanager" "pipewire" "audio" ];
uid = 1000;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh johannes@joens.email"
];
packages = with pkgs;
[ libsForQt5.kate libsForQt5.ark texlive.combined.scheme-full ]
++ lib.optionals (config.system == "x86_64-linux") [

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 ];
}