add new syncthing folder to nixos peers
This commit is contained in:
parent
0ee9feb84e
commit
577bc93b8d
3 changed files with 13 additions and 3 deletions
|
|
@ -10,6 +10,10 @@
|
|||
];
|
||||
|
||||
# hs-specific home configuration
|
||||
|
||||
syncthing-custom = {
|
||||
enabledFolders = [ "Credentials" "Documents" "Obsidian" "Archive" "NSFW" ];
|
||||
};
|
||||
|
||||
# yt-dlp configuration - store videos on large storage
|
||||
programs.yt-dlp-custom = {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,10 @@
|
|||
../../../modules/schedule.nix
|
||||
];
|
||||
|
||||
syncthing-custom = {
|
||||
enabledFolders = [ "Credentials" "Documents" "Obsidian" "Archive" "NSFW" ];
|
||||
};
|
||||
|
||||
services.scheduled-commands.aicloud-backup = {
|
||||
enable = true;
|
||||
description = "Backup aicloud files";
|
||||
|
|
|
|||
|
|
@ -22,8 +22,10 @@ let
|
|||
stignoreContent = lib.concatStringsSep "\n" commonIgnores;
|
||||
|
||||
# Device groupings
|
||||
pcDevices = [ "hs" "thinkpad" "macbook" ];
|
||||
nixosDevices = [ "hs" "thinkpad" ];
|
||||
darwinDevices = [ "macbook" ];
|
||||
touchDevices = [ "iphone" "ipad" ];
|
||||
pcDevices = nixosDevices ++ darwinDevices;
|
||||
allDevices = pcDevices ++ touchDevices;
|
||||
|
||||
# Common versioning configuration
|
||||
|
|
@ -113,9 +115,9 @@ in
|
|||
};
|
||||
})
|
||||
// (lib.optionalAttrs (lib.elem "NSFW" cfg.enabledFolders) {
|
||||
"Archive" = {
|
||||
"NSFW" = {
|
||||
path = "~/NSFW";
|
||||
devices = pcDevices;
|
||||
devices = nixosDevices;
|
||||
ignorePerms = true;
|
||||
versioning = commonVersioning;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue