refactor: move openssh config to a mkif
This commit is contained in:
parent
aa269aa681
commit
bfeae72f73
2 changed files with 6 additions and 6 deletions
|
@ -84,6 +84,12 @@ in
|
|||
'';
|
||||
})];
|
||||
|
||||
services.openssh = lib.mkIf (config.stitchyconf.form == "server"){
|
||||
enable = true;
|
||||
settings.PasswordAuthentication = false;
|
||||
settings.KbdInteractiveAuthentication = false;
|
||||
};
|
||||
|
||||
environment.etc.hosts.mode = "0644";
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue