diff options
Diffstat (limited to 'nixos/configurations/spt-mox.nix')
-rw-r--r-- | nixos/configurations/spt-mox.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/nixos/configurations/spt-mox.nix b/nixos/configurations/spt-mox.nix new file mode 100644 index 0000000..7b1ffb8 --- /dev/null +++ b/nixos/configurations/spt-mox.nix @@ -0,0 +1,53 @@ +{config, ...}: { + turris.board = "mox"; + deploy = { + enable = true; + ssh.host = "mox.spt"; + }; + + cynerd = { + home-assistant = true; + switch = { + enable = true; + lanAddress = "${config.cynerd.hosts.spt.mox}/24"; + lanGateway = config.cynerd.hosts.spt.omnia; + }; + wifiAP.spt = { + enable = true; + qca988x = { + interface = "wls1"; + bssids = ["04:f0:21:24:24:d2" "08:f0:21:24:24:d2"]; + channel = 7; + }; + }; + }; + + services.journald.extraConfig = '' + SystemMaxUse=512M + ''; + + services.btrfs.autoScrub = { + enable = true; + fileSystems = ["/"]; + }; + + networking = { + useNetworkd = true; + useDHCP = false; + }; + systemd.network.networks = { + "lan-brlan" = { + matchConfig.Name = "lan* end0"; + networkConfig.Bridge = "brlan"; + bridgeVLANs = [ + { + bridgeVLANConfig = { + EgressUntagged = 1; + PVID = 1; + }; + } + {bridgeVLANConfig.VLAN = 2;} + ]; + }; + }; +} |