diff --git a/examples/extneder.nix b/examples/extneder.nix index b86e607..802791b 100644 --- a/examples/extneder.nix +++ b/examples/extneder.nix @@ -12,6 +12,7 @@ ... }: let secrets = import ./extneder-secrets.nix; + svc = config.system.service; in rec { boot = { tftp = { @@ -23,6 +24,7 @@ in rec { imports = [ "${modulesPath}/profiles/wap.nix" "${modulesPath}/vlan" + "${modulesPath}/ssh" ]; hostname = "extneder"; @@ -80,6 +82,7 @@ in rec { }; }; + services.sshd = svc.ssh.build {}; users.root.passwd = lib.mkForce secrets.root.passwd; defaultProfile.packages = with pkgs; [nftables strace tcpdump swconfig]; } diff --git a/modules/profiles/wap.nix b/modules/profiles/wap.nix index 5c95e99..fdb3b41 100644 --- a/modules/profiles/wap.nix +++ b/modules/profiles/wap.nix @@ -40,7 +40,6 @@ in { ../network ../hostapd ../bridge - ../ssh { config.services = hostaps; } ]; @@ -54,7 +53,6 @@ in { }; }; config = { - services.sshd = svc.ssh.build {}; services.int = svc.bridge.primary.build { ifname = "int";