added immich to the homelab.

This commit is contained in:
Gabe Venberg 2025-05-03 22:26:25 +02:00
parent 478d5760bd
commit 11f6c18f13
5 changed files with 66 additions and 0 deletions

View file

@ -50,6 +50,11 @@
type = lib.types.listOf lib.types.path;
description = "paths to back up.";
};
user = lib.mkOption {
type = lib.types.str;
description = "what user to run the backup under.";
default = "root";
};
preBackupCommands = lib.mkOption {
type = lib.types.nullOr lib.types.lines;
description = "commands to run before the start of the backup.";
@ -139,6 +144,7 @@
backupPrepareCommand = backup.preBackupCommands;
backupCleanupCommand = backup.postBackupCommands;
paths = backup.paths;
user = backup.user;
}
)
cfg.backups