From 4294512d93da540a7c7cb326f8c7b06688a0834c Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Thu, 19 Sep 2024 18:20:28 -0400 Subject: [PATCH] created syncthing.nix --- systems/bob/default.nix | 48 +-------------------------------------- systems/bob/syncthing.nix | 48 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 47 deletions(-) create mode 100644 systems/bob/syncthing.nix diff --git a/systems/bob/default.nix b/systems/bob/default.nix index 6ee08b4..7c23d07 100644 --- a/systems/bob/default.nix +++ b/systems/bob/default.nix @@ -16,6 +16,7 @@ ../common/optional/yubikey.nix ./hardware.nix ./nvidia.nix + ./syncthing.nix ]; boot.kernelPackages = pkgs.linuxPackages_zen; @@ -50,53 +51,6 @@ pulse.enable = true; }; - syncthing.settings.folders = { - "notes" = { - id = "l62ul-lpweo"; # cspell:disable-line - path = "/home/richie/notes"; - devices = [ - "jeeves" - ]; - fsWatcherEnabled = true; - }; - "books" = { - id = "6uppx-vadmy"; # cspell:disable-line - path = "/home/richie/books"; - devices = [ - "phone" - "jeeves" - ]; - fsWatcherEnabled = true; - }; - "important" = { - id = "4ckma-gtshs"; # cspell:disable-line - path = "/home/richie/important"; - devices = [ - "phone" - "jeeves" - ]; - fsWatcherEnabled = true; - }; - "music" = { - id = "vprc5-3azqc"; # cspell:disable-line - path = "/home/richie/music"; - devices = [ - "ipad" - "phone" - "jeeves" - ]; - fsWatcherEnabled = true; - }; - "projects" = { - id = "vyma6-lqqrz"; # cspell:disable-line - path = "/home/richie/projects"; - devices = [ - "jeeves" - ]; - fsWatcherEnabled = true; - }; - }; - zfs = { trim.enable = true; autoScrub.enable = true; diff --git a/systems/bob/syncthing.nix b/systems/bob/syncthing.nix new file mode 100644 index 0000000..ad120f7 --- /dev/null +++ b/systems/bob/syncthing.nix @@ -0,0 +1,48 @@ +{ + services.syncthing.settings.folders = { + "notes" = { + id = "l62ul-lpweo"; # cspell:disable-line + path = "/home/richie/notes"; + devices = [ + "jeeves" + ]; + fsWatcherEnabled = true; + }; + "books" = { + id = "6uppx-vadmy"; # cspell:disable-line + path = "/home/richie/books"; + devices = [ + "phone" + "jeeves" + ]; + fsWatcherEnabled = true; + }; + "important" = { + id = "4ckma-gtshs"; # cspell:disable-line + path = "/home/richie/important"; + devices = [ + "phone" + "jeeves" + ]; + fsWatcherEnabled = true; + }; + "music" = { + id = "vprc5-3azqc"; # cspell:disable-line + path = "/home/richie/music"; + devices = [ + "ipad" + "phone" + "jeeves" + ]; + fsWatcherEnabled = true; + }; + "projects" = { + id = "vyma6-lqqrz"; # cspell:disable-line + path = "/home/richie/projects"; + devices = [ + "jeeves" + ]; + fsWatcherEnabled = true; + }; + }; +}