diff --git a/hosts/templates/pi-server.nix b/hosts/templates/pi-server.nix new file mode 100644 index 0000000..a18edde --- /dev/null +++ b/hosts/templates/pi-server.nix @@ -0,0 +1,24 @@ +{ inputs, outputs, lib, config, pkgs, ... }: { + imports = [ + inputs.sops-nix.nixosModules.sops + ../server + ../systemd-primary.nix + ../common/boot.nix + ../common/networking.nix + ../common/tailscale.nix + ../../home/pi-server.nix + ../../modules/beszel-agent.nix + ]; + + config = { + # Common server setup + nix.settings.trusted-users = ["root" "don"]; + + # Server-specific Nix settings + nix.gc = { + automatic = true; + dates = "daily"; + options = "--delete-older-than 7d"; + }; + }; +}