create gateway profile by extracting from rotuer example

This commit is contained in:
Daniel Barlow
2024-03-18 00:05:43 +00:00
parent 0a820a702a
commit 9263b21faa
4 changed files with 235 additions and 151 deletions

View File

@@ -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";
@@ -45,6 +47,7 @@ in rec {
};
};
services.sshd = svc.ssh.build {};
users.root.passwd = lib.mkForce secrets.root.passwd;
defaultProfile.packages = with pkgs; [nftables strace tcpdump swconfig];
}