feat(syncthing): init msyds

This commit is contained in:
2025-09-08 10:50:34 -06:00
parent 1092abc002
commit 430b55075f
2 changed files with 37 additions and 4 deletions

View 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;
};
};
};
};
}

View File

@@ -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;
}; };
}; };