diff --git a/flake.nix b/flake.nix index 5e5a055..0ed5b98 100644 --- a/flake.nix +++ b/flake.nix @@ -303,6 +303,7 @@ auto-cpufreq.nixosModules.default ./hosts/tyr/configuration.nix ./modules/linux/nixos + ./modules/servers/tyr home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; diff --git a/hosts/tyr/configuration.nix b/hosts/tyr/configuration.nix index 19b3407..cd11d75 100644 --- a/hosts/tyr/configuration.nix +++ b/hosts/tyr/configuration.nix @@ -134,18 +134,6 @@ # Enable my specific settings crony.secrets.enable = true; - # Optimise storage - nix.optimise = { - automatic = true; - dates = "weekly"; - }; - - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 10d"; - }; - # setup podman for virtualisation virtualisation = { podman = { diff --git a/modules/servers/tyr/default.nix b/modules/servers/tyr/default.nix new file mode 100644 index 0000000..a4bbeb2 --- /dev/null +++ b/modules/servers/tyr/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./syncthing.nix + ]; +} diff --git a/modules/servers/tyr/syncthing.nix b/modules/servers/tyr/syncthing.nix new file mode 100644 index 0000000..6565fd5 --- /dev/null +++ b/modules/servers/tyr/syncthing.nix @@ -0,0 +1,11 @@ +{ + services.syncthing = { + enable = true; + openDefaultPorts = true; + guiAddress = "0.0.0.0:8384"; + }; + + networking.firewall = { + allowedTCPPorts = [8384]; + }; +}