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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -19,10 +19,6 @@
|
|||||||
home.file.".ssh/id_ed25519.pub".source =
|
home.file.".ssh/id_ed25519.pub".source =
|
||||||
../../public-keys/ssh/crumb-at-nixos-testbed.pub;
|
../../public-keys/ssh/crumb-at-nixos-testbed.pub;
|
||||||
|
|
||||||
# A few settings without a home:
|
|
||||||
xdg.enable = true;
|
|
||||||
home.preferXdgDirectories = true;
|
|
||||||
|
|
||||||
home.packages = [];
|
home.packages = [];
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
@@ -40,6 +36,7 @@
|
|||||||
users.msyds = {
|
users.msyds = {
|
||||||
emacs.enable = true;
|
emacs.enable = true;
|
||||||
impermanence.enable = true;
|
impermanence.enable = true;
|
||||||
|
syncthing.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user