feat(syncthing): init msyds
This commit is contained in:
36
modules/home/users/msyds/syncthing.nix
Normal file
36
modules/home/users/msyds/syncthing.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.users.msyds.syncthing;
|
||||
in {
|
||||
options.sydnix.users.msyds.syncthing = {
|
||||
enable = lib.mkEnableOption "Syncthing";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
sydnix.syncthing = {
|
||||
enable = true;
|
||||
includeDevices = [
|
||||
"sydpc"
|
||||
"deertopia"
|
||||
];
|
||||
directories = {
|
||||
"org" = {
|
||||
path = "~/org";
|
||||
devices = [
|
||||
"deertopia"
|
||||
"sydpc"
|
||||
];
|
||||
ignorePerms = true;
|
||||
};
|
||||
"Music" = {
|
||||
path = "~/Music";
|
||||
devices = [
|
||||
"deertopia"
|
||||
"sydpc"
|
||||
];
|
||||
ignorePerms = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user