From 51f29861fcfe339b726e77b00146636d1d47a5dd Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 15 Jul 2025 10:59:39 -0500 Subject: [PATCH 1/2] Prevent bosephus from sleeping when the lid is closed --- systems/linux/bosephus.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/systems/linux/bosephus.nix b/systems/linux/bosephus.nix index 64452b7..a3c7c7a 100644 --- a/systems/linux/bosephus.nix +++ b/systems/linux/bosephus.nix @@ -17,6 +17,10 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + # Ignore lid - so I can close without having the system go into sleep mode + services.logind.lidSwitch = "ignore"; + services.logind.lidSwitchDocked = "ignore"; + # Secrets age.secrets = { network-information = { From aa9aee2b216f145296fee0623babe491b17d1589 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 15 Jul 2025 11:03:42 -0500 Subject: [PATCH 2/2] add dns options to prevent deadlocks in pihole --- services/pihole.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/services/pihole.nix b/services/pihole.nix index 0dc7625..0aa5e51 100644 --- a/services/pihole.nix +++ b/services/pihole.nix @@ -19,6 +19,7 @@ [ "53:53/tcp" "53:53/udp" "80:80/tcp" "443:443/tcp" ]; environmentFiles = [ config.age.secrets.pihole-credentials.path ]; networks = [ "bridge" ]; + dns = [ "127.0.0.1" "194.242.2.9" ]; }; }; };