2022-06-03 17:47:16 +02:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
2022-06-09 23:27:03 +02:00
|
|
|
./disks.nix
|
|
|
|
./dyndns.nix
|
2022-12-03 11:59:28 +01:00
|
|
|
./services.nix
|
|
|
|
./syncthing.nix
|
|
|
|
./wifi.nix
|
2022-12-05 20:32:39 +01:00
|
|
|
../../legacy/modules/avahi.nix
|
|
|
|
../../legacy/modules/docker.nix
|
|
|
|
../../legacy/modules/nix.nix
|
|
|
|
../../legacy/modules/webapps/bazarr.nix
|
|
|
|
../../legacy/modules/webapps/prowlarr.nix
|
|
|
|
../../legacy/modules/webapps/radarr.nix
|
|
|
|
../../legacy/modules/webapps/sonarr.nix
|
2022-06-03 17:47:16 +02:00
|
|
|
];
|
|
|
|
networking.hostName = "serverle";
|
|
|
|
|
2022-06-27 22:43:06 +02:00
|
|
|
sops = {
|
|
|
|
defaultSopsFile = ./secrets.yaml;
|
2022-12-03 11:59:28 +01:00
|
|
|
# disable gpg and thereby enable age
|
|
|
|
gnupg.sshKeyPaths = [ ];
|
2022-06-27 22:43:06 +02:00
|
|
|
};
|
2022-06-03 23:32:36 +02:00
|
|
|
|
2022-06-03 17:47:16 +02:00
|
|
|
#environment.noXlibs = true;
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
8080 # aria
|
|
|
|
];
|
|
|
|
|
|
|
|
# Nix
|
|
|
|
nix.gc = {
|
|
|
|
automatic = true;
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
|
|
|
|
|
|
|
system = {
|
2022-06-03 23:39:14 +02:00
|
|
|
stateVersion = "22.05";
|
2022-06-03 17:47:16 +02:00
|
|
|
autoUpgrade.enable = true;
|
|
|
|
};
|
|
|
|
}
|