restic/system: Constantly use system for naming
In the future I may create add other backup jobs, so it should be clear, that this only backs up the system.
This commit is contained in:
parent
d7272e9db3
commit
83f1c69713
|
@ -12,7 +12,7 @@
|
|||
games.enable = true;
|
||||
gui.enable = true;
|
||||
media-proxy.enable = true;
|
||||
restic.enable = true;
|
||||
restic.system.enable = true;
|
||||
unfree.allowSoftware = true;
|
||||
wireguard.home.enable = true;
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
games.enable = true;
|
||||
gui.enable = true;
|
||||
media-proxy.enable = true;
|
||||
restic = {
|
||||
restic.system = {
|
||||
enable = true;
|
||||
extraPaths = [
|
||||
"/data"
|
||||
|
|
|
@ -16,7 +16,7 @@ in
|
|||
];
|
||||
|
||||
sbruder = {
|
||||
restic.enable = true;
|
||||
restic.system.enable = true;
|
||||
wireguard.home.enable = true;
|
||||
full = false;
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ in
|
|||
./prometheus/node_exporter.nix
|
||||
./pubkeys.nix
|
||||
./pulseaudio.nix
|
||||
./restic.nix
|
||||
./restic
|
||||
./secrets.nix
|
||||
./ssh.nix
|
||||
./tools.nix
|
||||
|
|
5
modules/restic/default.nix
Normal file
5
modules/restic/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./system.nix
|
||||
];
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
let
|
||||
cfg = config.sbruder.restic;
|
||||
cfg = config.sbruder.restic.system;
|
||||
|
||||
repository = "s3:https://s3.eu-central-1.wasabisys.com/sbruder-restic";
|
||||
excludes = [
|
||||
|
@ -39,7 +39,7 @@ let
|
|||
'';
|
||||
in
|
||||
{
|
||||
options.sbruder.restic = {
|
||||
options.sbruder.restic.system = {
|
||||
enable = lib.mkEnableOption "restic";
|
||||
timerConfig = lib.mkOption {
|
||||
type = with lib.types; attrsOf str;
|
||||
|
@ -79,6 +79,7 @@ in
|
|||
extraBackupArgs = [
|
||||
"--exclude-caches"
|
||||
"--exclude-file=${excludesFile}"
|
||||
"--tag system"
|
||||
"--verbose"
|
||||
];
|
||||
};
|
Loading…
Reference in a new issue