aboutsummaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-06-12 00:39:43 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-06-12 00:39:43 -0700
commitd34e5a08e3fdc5f2247a41c42ed7c30988f2b89c (patch)
tree2b2376526d784224591d227705c2ceba11fc4405 /hosts
parent160a113cd3fcc57c8db3a1be20ca1e4b4bdaf0ba (diff)
downloadnix-d34e5a08e3fdc5f2247a41c42ed7c30988f2b89c.tar
nix-d34e5a08e3fdc5f2247a41c42ed7c30988f2b89c.tar.gz
nix-d34e5a08e3fdc5f2247a41c42ed7c30988f2b89c.tar.bz2
nix-d34e5a08e3fdc5f2247a41c42ed7c30988f2b89c.tar.lz
nix-d34e5a08e3fdc5f2247a41c42ed7c30988f2b89c.tar.xz
nix-d34e5a08e3fdc5f2247a41c42ed7c30988f2b89c.tar.zst
nix-d34e5a08e3fdc5f2247a41c42ed7c30988f2b89c.zip
Fix deprecated option
Diffstat (limited to '')
-rw-r--r--hosts/darkstar/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/hosts/darkstar/default.nix b/hosts/darkstar/default.nix
index 5ae8ada..1299eae 100644
--- a/hosts/darkstar/default.nix
+++ b/hosts/darkstar/default.nix
@@ -42,9 +42,6 @@
hostName = "darkstar";
defaultGateway = "192.168.1.1";
domain = "bitgnome.net";
- firewall.extraCommands = ''
- ${pkgs.nftables}/bin/nft -f ${config.sops.secrets."nftables/ssh".path}
- '';
interfaces = {
enp116s0 = {
ipv4.addresses = [
@@ -62,7 +59,12 @@
# externalInterface = "vlan201";
# internalInterfaces = [ "enp116s0" ];
#};
- nftables.enable = true;
+ nftables = {
+ enable = true;
+ preCheckRuleset = ''
+ ${pkgs.nftables}/bin/nft -f ${config.sops.secrets."nftables/ssh".path}
+ '';
+ };
#useDHCP = false;
vlans = {
vlan201 = { id=201; interface="enp117s0"; };