From 3549e9624afbfe51b775b51013ad279cd9199b17 Mon Sep 17 00:00:00 2001 From: Andre Date: Wed, 18 Dec 2024 21:49:16 +0000 Subject: [PATCH] Pihole: update config --- modules/nixos/system/nix/default.nix | 3 --- systems/aarch64-linux/Pihole/default.nix | 21 ++++++++++++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/modules/nixos/system/nix/default.nix b/modules/nixos/system/nix/default.nix index 8773afa..d45e7ad 100644 --- a/modules/nixos/system/nix/default.nix +++ b/modules/nixos/system/nix/default.nix @@ -28,9 +28,6 @@ in config = lib.mkMerge [ { nix = { - # Use Lix in place of Nix - package = inputs.lix.packages.${system}.default; - # Ensure we can still build when secondary caches are unavailable extraOptions = '' fallback = true diff --git a/systems/aarch64-linux/Pihole/default.nix b/systems/aarch64-linux/Pihole/default.nix index 52a7a87..f1ecf34 100644 --- a/systems/aarch64-linux/Pihole/default.nix +++ b/systems/aarch64-linux/Pihole/default.nix @@ -27,15 +27,30 @@ in ${namespace} = { bootloader.enable = false; # Bootloader configured in hardware-configuration.nix + + editor = "nano"; + packages = with pkgs; [ libraspberrypi raspberrypifw raspberrypi-eeprom linuxKernel.kernels.linux_rpi4 ]; - services.ssh = { - enable = true; - ports = [ config.${namespace}.secrets.hosts.hevana.ssh.port ]; + services = { + autoUpgrade = { + enable = true; + configDir = config.${namespace}.secrets.nixConfigFolder; + onCalendar = "daily"; + user = config.users.users.aires.name; + }; + ssh = { + enable = true; + ports = [ config.${namespace}.secrets.hosts.hevana.ssh.port ]; + }; + tor = { + enable = true; + snowflake-proxy.enable = true; + }; }; users.aires.enable = true; };