WIP
This commit is contained in:
@@ -117,4 +117,17 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.nixos.ssh = {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
# require public key authentication for better security
|
||||
settings.PasswordAuthentication = false;
|
||||
settings.KbdInteractiveAuthentication = false;
|
||||
};
|
||||
|
||||
home-manager.sharedModules = with inputs.self.homeModules; [
|
||||
ssh
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user