From f9bea2df787f401e493b8595a1e1da5111669a07 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 24 Sep 2025 20:43:29 +0200 Subject: [PATCH 1/2] feat(tyr): fix some conflicts in config --- hosts/tyr/configuration.nix | 12 ------------ modules/servers/tyr/default.nix | 5 +++++ modules/servers/tyr/syncthing.nix | 5 +++++ 3 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 modules/servers/tyr/default.nix create mode 100644 modules/servers/tyr/syncthing.nix 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..2ab81c9 --- /dev/null +++ b/modules/servers/tyr/syncthing.nix @@ -0,0 +1,5 @@ +{ + services.syncthing = { + enable = true; + }; +} From 359b8159cc8f9971b1369d6c7df83696fb0a5c16 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 24 Sep 2025 20:43:43 +0200 Subject: [PATCH 2/2] feat(tyr): setup syncthing. --- flake.nix | 1 + modules/servers/tyr/syncthing.nix | 6 ++++++ 2 files changed, 7 insertions(+) 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/modules/servers/tyr/syncthing.nix b/modules/servers/tyr/syncthing.nix index 2ab81c9..6565fd5 100644 --- a/modules/servers/tyr/syncthing.nix +++ b/modules/servers/tyr/syncthing.nix @@ -1,5 +1,11 @@ { services.syncthing = { enable = true; + openDefaultPorts = true; + guiAddress = "0.0.0.0:8384"; + }; + + networking.firewall = { + allowedTCPPorts = [8384]; }; }