From 1e3cf302928cc6ce7b779d453fd6a66b58cb7fd2 Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 23 Apr 2026 20:21:38 -0500 Subject: [PATCH] fix website --- modules/features/traefik/config/routing.yml | 2 +- modules/hosts/pi4/configuration.nix | 24 +++++++++++++-------- modules/users/nathan/nathan.nix | 2 ++ 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/modules/features/traefik/config/routing.yml b/modules/features/traefik/config/routing.yml index 60acba4..280ef38 100644 --- a/modules/features/traefik/config/routing.yml +++ b/modules/features/traefik/config/routing.yml @@ -8,7 +8,7 @@ http: rule: "Host(`esotericbytes.com`) || Host(`www.esotericbytes.com`)" service: "homepage" middlewares: - - authentik + - authentik@docker tls: certResolver: "cloudflare" diff --git a/modules/hosts/pi4/configuration.nix b/modules/hosts/pi4/configuration.nix index 4a22b06..08818ca 100644 --- a/modules/hosts/pi4/configuration.nix +++ b/modules/hosts/pi4/configuration.nix @@ -1,11 +1,19 @@ -{ inputs, ... }: { +{ self, inputs, ... }: { flake.nixosModules.pi4 = { config, pkgs, ... }: { - imports = [ - inputs.disko.nixosModules.default + imports = with self.nixosModules; [ + inputs.disko.nixosModules.default - inputs.home-manager.nixosModules.default + inputs.home-manager.nixosModules.default + + self.nixosModules.default + user-nathan + netbird + avahi + openssh + remoteBuilds + sops ]; config = { @@ -57,13 +65,13 @@ SUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="gpio",MODE="0660" SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", RUN+="${pkgs.bash}/bin/bash -c 'chown root:gpio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'" SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add",RUN+="${pkgs.bash}/bin/bash -c 'chown root:gpio /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value ; chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'" - ''; + ''; pulseaudio = { enable = true; extraConfig = '' load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 - ''; + ''; }; }; @@ -77,11 +85,9 @@ fonts.packages = with pkgs; [ nerd-fonts.fira-code ]; - sound.enable = true; - security.rtkit.enable = true; - system.stateVersion = "25.05"; + system.stateVersion = "25.11"; }; }; } diff --git a/modules/users/nathan/nathan.nix b/modules/users/nathan/nathan.nix index 6c7ad79..15a93d7 100644 --- a/modules/users/nathan/nathan.nix +++ b/modules/users/nathan/nathan.nix @@ -4,6 +4,8 @@ laptop = [ "laptop" ]; homebox = [ "homebox" ]; iso = [ "iso" ]; + #pi4 = [ "pi4" ]; + #z2w = [ "red-black" "blue-white" ]; useWith = x: y: (lib.mkIf (builtins.any (z: z == config.networking.hostName) x) y); in {