mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
Add ssh key
This commit is contained in:
parent
4ca736ec91
commit
d45156b4ee
2 changed files with 10 additions and 5 deletions
|
@ -10,10 +10,13 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh.enable = true;
|
||||
services.openssh.settings.X11forwarding = true;
|
||||
services.openssh.settings.PermitRootLogin = "yes";
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
passwordAuthentication = false;
|
||||
kbdInteractiveAuthentication = false;
|
||||
settings.X11forwarding = true;
|
||||
settings.PermitRootLogin = "yes";
|
||||
}
|
||||
environment.systemPackages = with pkgs; [ sshfs ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue