mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-02-18 01:20:47 +01:00
Add basic syncthing configuration as service
This commit is contained in:
parent
e4dc5144cd
commit
eb6cdc1ba7
@ -24,6 +24,7 @@
|
|||||||
./printer.nix
|
./printer.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
./steam.nix
|
./steam.nix
|
||||||
|
./syncthing.nix
|
||||||
./vm.nix
|
./vm.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
13
config/system/syncthing.nix
Normal file
13
config/system/syncthing.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
|
let inherit (import ../../options.nix) syncthing username userHome; in
|
||||||
|
lib.mkIf (syncthing == true) {
|
||||||
|
services = {
|
||||||
|
syncthing = {
|
||||||
|
enable = true;
|
||||||
|
user = "${username}";
|
||||||
|
dataDir = "/home/${username}"; # Default folder for new synced folders
|
||||||
|
configDir = "/home/${username}/.config/syncthing"; # Folder for Syncthing's settings and keys
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -82,5 +82,8 @@ in {
|
|||||||
|
|
||||||
# Enable Python & PyCharm
|
# Enable Python & PyCharm
|
||||||
python = false;
|
python = false;
|
||||||
|
|
||||||
|
# Enable SyncThing
|
||||||
|
syncthing = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user