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
|
# hs-specific home configuration
|
||||||
|
|
||||||
|
syncthing-custom = {
|
||||||
|
enabledFolders = [ "Credentials" "Documents" "Obsidian" "Archive" "NSFW" ];
|
||||||
|
};
|
||||||
|
|
||||||
# yt-dlp configuration - store videos on large storage
|
# yt-dlp configuration - store videos on large storage
|
||||||
programs.yt-dlp-custom = {
|
programs.yt-dlp-custom = {
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,10 @@
|
||||||
../../../modules/schedule.nix
|
../../../modules/schedule.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
syncthing-custom = {
|
||||||
|
enabledFolders = [ "Credentials" "Documents" "Obsidian" "Archive" "NSFW" ];
|
||||||
|
};
|
||||||
|
|
||||||
services.scheduled-commands.aicloud-backup = {
|
services.scheduled-commands.aicloud-backup = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Backup aicloud files";
|
description = "Backup aicloud files";
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,10 @@ let
|
||||||
stignoreContent = lib.concatStringsSep "\n" commonIgnores;
|
stignoreContent = lib.concatStringsSep "\n" commonIgnores;
|
||||||
|
|
||||||
# Device groupings
|
# Device groupings
|
||||||
pcDevices = [ "hs" "thinkpad" "macbook" ];
|
nixosDevices = [ "hs" "thinkpad" ];
|
||||||
|
darwinDevices = [ "macbook" ];
|
||||||
touchDevices = [ "iphone" "ipad" ];
|
touchDevices = [ "iphone" "ipad" ];
|
||||||
|
pcDevices = nixosDevices ++ darwinDevices;
|
||||||
allDevices = pcDevices ++ touchDevices;
|
allDevices = pcDevices ++ touchDevices;
|
||||||
|
|
||||||
# Common versioning configuration
|
# Common versioning configuration
|
||||||
|
|
@ -113,9 +115,9 @@ in
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
// (lib.optionalAttrs (lib.elem "NSFW" cfg.enabledFolders) {
|
// (lib.optionalAttrs (lib.elem "NSFW" cfg.enabledFolders) {
|
||||||
"Archive" = {
|
"NSFW" = {
|
||||||
path = "~/NSFW";
|
path = "~/NSFW";
|
||||||
devices = pcDevices;
|
devices = nixosDevices;
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
versioning = commonVersioning;
|
versioning = commonVersioning;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue