diff options
author | Linnnus <[email protected]> | 2025-03-04 17:21:56 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2025-03-04 17:21:56 +0100 |
commit | fbc0140b39087b9dbca7dc7a4988e00ed4613fff (patch) | |
tree | 74c5a908f71c3906437c9512b4d8565e858c8518 | |
parent | aa6adef55987903b467aea2a15693c3c1d6ca409 (diff) |
muhammed: Add syncthing for e-books
-rw-r--r-- | hosts/muhammed/configuration.nix | 1 | ||||
-rw-r--r-- | hosts/muhammed/syncthing.nix | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/hosts/muhammed/configuration.nix b/hosts/muhammed/configuration.nix index 54fd36e..be8c71d 100644 --- a/hosts/muhammed/configuration.nix +++ b/hosts/muhammed/configuration.nix @@ -32,6 +32,7 @@ ../../shared/home-manager/qbittorrent ../../shared/home-manager/iterm2 ./extra-utils.nix + ./syncthing.nix ]; }; diff --git a/hosts/muhammed/syncthing.nix b/hosts/muhammed/syncthing.nix new file mode 100644 index 0000000..15581a8 --- /dev/null +++ b/hosts/muhammed/syncthing.nix @@ -0,0 +1,31 @@ +{...}: { + # Until nix-community/home-manager@45c07fc becomes part of the channel we're + # following, I've just manually included it here. When that time comes, the + # module should be removed. + imports = let + home-manager' = builtins.fetchGit { + url = "https://github.com/nix-community/home-manager.git"; + rev = "45c07fcf7d28b5fb3ee189c260dee0a2e4d14317"; + }; + in ["${home-manager'}/modules/services/syncthing.nix"]; + disabledModules = ["services/syncthing.nix"]; + + services.syncthing = { + enable = true; + + settings = { + folders = { + "ebooks" = { + lable = "Ebooks"; + path = "~/Documents/Synced ebooks"; + copyOwnershipFromParent = true; + devices = ["boox-tablet"]; + }; + }; + + devices = { + boox-tablet.id = "SFQMOCB-TPRTXLD-WDL3REL-2XINQDR-3PZQ5IT-KX4PGXX-2VJO3JZ-2K2XNQ3"; + }; + }; + }; +} |