diff --git a/systems/jeeves/default.nix b/systems/jeeves/default.nix index b435a3a..eb43347 100644 --- a/systems/jeeves/default.nix +++ b/systems/jeeves/default.nix @@ -16,6 +16,7 @@ in ./networking.nix ./programs.nix ./services.nix + ./syncthing.nix ]; boot.zfs.extraPools = [ @@ -36,54 +37,6 @@ in sysstat.enable = true; - syncthing.guiAddress = "192.168.90.40:8384"; - syncthing.settings.folders = { - "notes" = { - id = "l62ul-lpweo"; # cspell:disable-line - path = vars.media_notes; - devices = [ - "bob" - ]; - fsWatcherEnabled = true; - }; - "books" = { - id = "6uppx-vadmy"; # cspell:disable-line - path = "${vars.storage_syncthing}/books"; - devices = [ - "bob" - "phone" - ]; - fsWatcherEnabled = true; - }; - "important" = { - id = "4ckma-gtshs"; # cspell:disable-line - path = "${vars.storage_syncthing}/important"; - devices = [ - "bob" - "phone" - ]; - fsWatcherEnabled = true; - }; - "music" = { - id = "vprc5-3azqc"; # cspell:disable-line - path = "${vars.storage_syncthing}/music"; - devices = [ - "bob" - "ipad" - "phone" - ]; - fsWatcherEnabled = true; - }; - "projects" = { - id = "vyma6-lqqrz"; # cspell:disable-line - path = "${vars.storage_syncthing}/projects"; - devices = [ - "bob" - ]; - fsWatcherEnabled = true; - }; - }; - zfs = { trim.enable = true; autoScrub.enable = true; diff --git a/systems/jeeves/syncthing.nix b/systems/jeeves/syncthing.nix new file mode 100644 index 0000000..2938a44 --- /dev/null +++ b/systems/jeeves/syncthing.nix @@ -0,0 +1,54 @@ +let + vars = import ./vars.nix; +in +{ + services.syncthing = { + guiAddress = "192.168.90.40:8384"; + settings.folders = { + "notes" = { + id = "l62ul-lpweo"; # cspell:disable-line + path = vars.media_notes; + devices = [ + "bob" + ]; + fsWatcherEnabled = true; + }; + "books" = { + id = "6uppx-vadmy"; # cspell:disable-line + path = "${vars.storage_syncthing}/books"; + devices = [ + "bob" + "phone" + ]; + fsWatcherEnabled = true; + }; + "important" = { + id = "4ckma-gtshs"; # cspell:disable-line + path = "${vars.storage_syncthing}/important"; + devices = [ + "bob" + "phone" + ]; + fsWatcherEnabled = true; + }; + "music" = { + id = "vprc5-3azqc"; # cspell:disable-line + path = "${vars.storage_syncthing}/music"; + devices = [ + "bob" + "ipad" + "phone" + ]; + fsWatcherEnabled = true; + }; + "projects" = { + id = "vyma6-lqqrz"; # cspell:disable-line + path = "${vars.storage_syncthing}/projects"; + devices = [ + "bob" + ]; + fsWatcherEnabled = true; + }; + }; + }; +}