nixos/hosts/garden/default.nix

39 lines
934 B
Nix
Raw Normal View History

2024-12-23 11:20:27 -06:00
{ ... }:
{
imports = [
./hardware-configuration.nix
../../base.nix
../../users/root.nix
../../roles/tailscale.nix
../../roles/caddy.nix
../../roles/vscode-remote.nix
../../roles/syncthing.nix
];
2024-12-23 11:39:35 -06:00
services.openssh.openFirewall = false;
2024-12-23 11:20:27 -06:00
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
2024-12-23 12:26:58 -06:00
networking.hostName = "garden";
2024-12-23 11:39:35 -06:00
# Enable the Flakes feature and the accompanying new nix command-line tool
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
2024-12-23 11:57:57 -06:00
services.prowlarr.enable = true;
2024-12-23 12:06:56 -06:00
services.caddy.virtualHosts."https://prowlarr.tailc50184.ts.net".extraConfig = ''
bind tailscale/prowlarr
reverse_proxy http://localhost:9696
'';
2024-12-23 11:57:57 -06:00
services.lidarr.enable = true;
2024-12-23 12:06:56 -06:00
services.caddy.virtualHosts."https://lidarr.tailc50184.ts.net".extraConfig = ''
bind tailscale/lidarr
reverse_proxy http://localhost:8686
'';
2024-12-23 11:57:57 -06:00
2024-12-23 11:20:27 -06:00
system.stateVersion = "23.11";
}