diff --git a/hosts/pi4/adguard.nix b/hosts/pi4/adguard.nix new file mode 100644 index 0000000..c8168f0 --- /dev/null +++ b/hosts/pi4/adguard.nix @@ -0,0 +1,8 @@ +{ ... }: +{ + services.adguardhome = { + enable = true; + openFirewall = true; + mutableSettings = true; + } +} \ No newline at end of file diff --git a/hosts/pi4/configuration.nix b/hosts/pi4/configuration.nix index cf2bcfc..8c90f45 100755 --- a/hosts/pi4/configuration.nix +++ b/hosts/pi4/configuration.nix @@ -10,6 +10,7 @@ let in { imports = [ + ./adguard.nix ./boot.nix ./impermanence.nix ./hardware-configuration.nix diff --git a/hosts/pi4/networking.nix b/hosts/pi4/networking.nix index f676cfc..45e253f 100755 --- a/hosts/pi4/networking.nix +++ b/hosts/pi4/networking.nix @@ -47,6 +47,28 @@ in psk = "$PSK"; }; }; + + "static-enabcm6e4ei0" = { + connection = { + id = "static-enabcm6e4ei0"; + type = "ethernet"; + interface-name = "enabcm6e4ei0"; + }; + + ipv4 = { + method = "manual"; + address-data = [{ + address = "10.0.1.2"; + prefix = 24; + }]; + gateway = "10.0.1.1"; + dns = [ "10.0.1.1" "1.1.1.1" ]; + }; + ipv6 = { + addr-gen-mode = "stable-privacy"; + method = "auto"; + }; + }; }; }; };