Add a generic backup solution.
This commit is contained in:
parent
d07ba813bf
commit
a3aa93106a
2 changed files with 15 additions and 0 deletions
11
nixos/common/backups.nix
Normal file
11
nixos/common/backups.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{lib, ...}: let
|
||||||
|
inherit (lib) mkOption types;
|
||||||
|
in {
|
||||||
|
# Generic Backups.
|
||||||
|
options.foehammer.backups = {
|
||||||
|
paths = mkOption {
|
||||||
|
type = types.nullOr (types.listOf types.str);
|
||||||
|
default = [];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -43,6 +43,10 @@ in {
|
||||||
SIGNUPS_ALLOWED = cfg.signups;
|
SIGNUPS_ALLOWED = cfg.signups;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
foehammer.backups.paths = [
|
||||||
|
"/var/lib/bitwarden_rs"
|
||||||
|
];
|
||||||
|
|
||||||
environmentFile = cfg.envPath;
|
environmentFile = cfg.envPath;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue