ssh module reorg
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
{
|
||||
imports = with inputs.self.homeModules; [
|
||||
rebuild
|
||||
# ssh
|
||||
git
|
||||
shell-tools
|
||||
];
|
||||
|
||||
@@ -3,6 +3,19 @@ let
|
||||
userName = "john";
|
||||
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
|
||||
];
|
||||
};
|
||||
|
||||
flake.homeModules.ssh = { pkgs, config, lib, ... }:
|
||||
{
|
||||
options.ssh = {
|
||||
@@ -117,17 +130,4 @@ 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