mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-29 01:53:10 +01:00
Add basic syncthing configuration as service
This commit is contained in:
parent
e4dc5144cd
commit
eb6cdc1ba7
@ -24,6 +24,7 @@
|
||||
./printer.nix
|
||||
./services.nix
|
||||
./steam.nix
|
||||
./syncthing.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
|
||||
python = false;
|
||||
|
||||
# Enable SyncThing
|
||||
syncthing = true;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user