nixos/hosts/garden/default.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

{ config, ... }:
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 19:34:17 -06:00
services.syncthing.group = config.services.lidarr.group;
2024-12-23 19:00:03 -06:00
services.caddy.virtualHosts."https://media.tailc50184.ts.net".extraConfig = ''
bind tailscale/media
2024-12-23 18:39:10 -06:00
reverse_proxy localhost:8384 {
header_up Host {upstream_hostport}
}
'';
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 20:05:38 -06:00
services.transmission = {
enable = true;
group = config.services.lidarr.group;
};
2024-12-23 11:20:27 -06:00
system.stateVersion = "23.11";
}