working flake-parts

This commit is contained in:
Charlie Root 2024-07-21 21:58:18 +02:00
commit 35e6b01a56
15 changed files with 243 additions and 88 deletions

View file

@ -9,6 +9,14 @@ with lib; let
inherit (config.modules.other.system) username;
in {
options.modules.programs.ssh.enable = mkEnableOption "ssh";
config = mkIf cfg.enable {programs.ssh = {startAgent = true;};};
config = {
programs.ssh.startAgent = true;
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
};
}