diff --git a/configuration.nix b/configuration.nix index 0217050..c97a4c6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -86,6 +86,7 @@ nix.gc = { automatic = true; dates = "03:15"; + options = "--delete-older-than 14d"; }; # Configure fish shell diff --git a/modules/datasync.nix b/modules/datasync.nix index 5cfca19..2ea28d5 100644 --- a/modules/datasync.nix +++ b/modules/datasync.nix @@ -7,7 +7,7 @@ radicale ]; - # Enable syncthingthing + # Enable syncthing services.syncthing = { enable = true; openDefaultPorts = true; @@ -17,14 +17,15 @@ devices = { monolith = { id = "QGDGEZQ-INE7XDY-DNX2QI4-QI7ANQJ-57REEO2-FUMH545-FZS5RYU-ULF7HA2"; }; roamer = { id = "DS3PJH3-J6SNMHM-XUJTDLO-DHGJL5U-J3RUMAG-4OSJWIK-VSJSDVJ-PIHZ2QP"; }; + unit = { id = "VYHHL4A-KJ6WUYQ-4SNWNA3-YRCFTHE-52ZTRLP-4LV6ZDV-4VAJLHC-RJXYYQY"; }; }; folders = { - "Documents" = { devices = [ "monolith" "roamer" ]; id = "wusdj-bfjkr"; }; - "Notes" = { devices = [ "monolith" "roamer" ]; id = "2aqt7-vpprc"; }; - "Music" = { devices = [ "monolith" "roamer" ]; id = "kafhz-bfmzm"; }; - "Photos" = { devices = [ "monolith" "roamer" ]; id = "mjibc-ustcg"; }; - "Security" = { devices = [ "monolith" "roamer" ]; id = "z4lpn-pmm3v"; }; - "Projects" = { devices = [ "monolith" ]; id = "cjhmu-avy9v"; }; + "Documents" = { devices = [ "monolith" "roamer" "unit" ]; id = "wusdj-bfjkr"; }; + "Notes" = { devices = [ "monolith" "roamer" "unit" ]; id = "kafhz-bfmzm"; }; + "Music" = { devices = [ "monolith" "roamer" "unit" ]; id = "2aqt7-vpprc"; }; + "Photos" = { devices = [ "monolith" "roamer" "unit" ]; id = "mjibc-ustcg"; }; + "Security" = { devices = [ "monolith" "roamer" "unit" ]; id = "z4lpn-pmm3v"; }; + "Projects" = { devices = [ "monolith" "unit" ]; id = "cjhmu-avy9v"; }; Documents.type = "receiveonly"; Notes.type = "receiveonly"; diff --git a/modules/devops.nix b/modules/devops.nix index d0c7d63..298bf23 100644 --- a/modules/devops.nix +++ b/modules/devops.nix @@ -18,8 +18,10 @@ disableRegistration = true; repositoryRoot = "/vault/git"; dump.enable = true; - useWizard = true; appName = "Gitea"; }; + # Restart nginx after startup + systemd.services.nginx.unitConfig.partOf = lib.mkForce [ "gitea.service" ]; + }