better syncthing setup
This commit is contained in:
parent
9f9a4d0377
commit
2c7f498d42
8 changed files with 56 additions and 35 deletions
|
|
@ -109,6 +109,7 @@ with lib;
|
|||
./security.nix
|
||||
./services.nix
|
||||
./software
|
||||
./syncthing.nix
|
||||
./window-manager.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
29
mod/desktop/syncthing.nix
Normal file
29
mod/desktop/syncthing.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, var, ... }:
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = lib.mkDefault true;
|
||||
user = "hd";
|
||||
settings.folders = {
|
||||
sync = {
|
||||
path = "/home/hd/Sync";
|
||||
type = "sendreceive";
|
||||
};
|
||||
supernote-note = rec {
|
||||
id = "supernote-note";
|
||||
path = "/home/hd/Sync/Dokumente/Supernote/Notizen";
|
||||
type = "sendreceive";
|
||||
devices = var.syncthing.device-names.desktops ++ [ "supernote" ];
|
||||
versioning = {
|
||||
type = "simple";
|
||||
params.keep = "10";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /home/hd/Sync 0755 hd users - -"
|
||||
"L+ /home/hd/Documents - - - - /home/hd/Sync/Dokumente"
|
||||
"L+ /home/hd/Desktop - - - - /home/hd/Sync/Desktop"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue