Enable restic
backups
This commit is contained in:
parent
31056ba23a
commit
106a9c3630
27 changed files with 396 additions and 304 deletions
|
@ -61,6 +61,11 @@ in {
|
|||
type = types.listOf types.deferredModule;
|
||||
default = [];
|
||||
};
|
||||
|
||||
backupPaths = lib.mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
@ -68,6 +73,8 @@ in {
|
|||
ccr.extraGroups = ["wheel" "fuse" "video" "dialout" "systemd-journal" "camera"];
|
||||
ccr.modules = ["shell" "git" "nix-index"];
|
||||
|
||||
backup.paths = cfg.backupPaths;
|
||||
|
||||
users.users.${cfg.username} = {
|
||||
inherit (config.ccr) hashedPassword extraGroups description;
|
||||
uid = 1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue