ssh module reorg

This commit is contained in:
John Lancaster
2026-03-10 22:18:28 -05:00
parent 7eaa32f161
commit 20f72768c5
4 changed files with 15 additions and 16 deletions

View File

@@ -4,7 +4,6 @@
{
imports = with inputs.self.homeModules; [
rebuild
# ssh
git
shell-tools
];

View File

@@ -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
];
};
}