nix: move all nixos configuration to nixosModules

export them
This commit is contained in:
Primrose 2024-10-30 19:27:45 +01:00
parent ce26e04e9c
commit 30bbb00f6b
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
17 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,18 @@
{ config, ... }:
{
services.restic.backups."Documents-backblaze" = {
paths = [ "/home/leana/Documents" ];
passwordFile = config.age.secrets.restic_backblaze_pwd.path;
repositoryFile = config.age.secrets.restic_backblaze_repo.path;
environmentFile = config.age.secrets.restic_backblaze_env.path;
pruneOpts = [
"--keep-daily 7"
"--keep-weekly 4"
"--keep-monthly 12"
"--keep-yearly 10"
];
};
}