mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 16:36:53 +01:00
add ssh
This commit is contained in:
parent
f96243dbfb
commit
88ae1b258d
3 changed files with 10 additions and 1 deletions
|
@ -59,6 +59,7 @@ in {
|
|||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
services.openssh.enable = enable;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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") [
|
||||
|
|
|
@ -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 ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue