moved some excludes
This commit is contained in:
@@ -16,13 +16,12 @@ in
|
|||||||
imports = with inputs.self.modules.homeManager; [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
rebuild
|
rebuild
|
||||||
john
|
john
|
||||||
resticprofile
|
|
||||||
sops
|
sops
|
||||||
docker
|
|
||||||
desktop
|
|
||||||
step-ssh-user
|
step-ssh-user
|
||||||
mtls
|
mtls
|
||||||
restic
|
restic
|
||||||
|
docker
|
||||||
|
desktop
|
||||||
];
|
];
|
||||||
targets.genericLinux.enable = true;
|
targets.genericLinux.enable = true;
|
||||||
|
|
||||||
@@ -88,6 +87,13 @@ in
|
|||||||
"${config.xdg.userDirs.documents}"
|
"${config.xdg.userDirs.documents}"
|
||||||
"/conf"
|
"/conf"
|
||||||
];
|
];
|
||||||
|
exclude = [
|
||||||
|
"/home/*/Pictures"
|
||||||
|
"/home/*/Videos"
|
||||||
|
"/home/*/go"
|
||||||
|
"/home/*/snap"
|
||||||
|
"/home/john/john-nas"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# programs.resticprofile = {
|
# programs.resticprofile = {
|
||||||
|
|||||||
@@ -19,6 +19,11 @@
|
|||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
};
|
};
|
||||||
|
exclude = lib.mkOption {
|
||||||
|
description = "List of string paths to include in the backup. There are already some common ones included by default.";
|
||||||
|
type = lib.types.listOf lib.types.str;
|
||||||
|
default = [ ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = let
|
config = let
|
||||||
@@ -59,7 +64,7 @@
|
|||||||
"--keep-weekly 8"
|
"--keep-weekly 8"
|
||||||
"--keep-monthly 12"
|
"--keep-monthly 12"
|
||||||
];
|
];
|
||||||
exclude = [
|
exclude = cfg.exclude ++ [
|
||||||
".cache"
|
".cache"
|
||||||
".devenv"
|
".devenv"
|
||||||
".rustup"
|
".rustup"
|
||||||
@@ -69,6 +74,7 @@
|
|||||||
".vscode*"
|
".vscode*"
|
||||||
"data/postgres"
|
"data/postgres"
|
||||||
"build"
|
"build"
|
||||||
|
"dist"
|
||||||
"__pycache__"
|
"__pycache__"
|
||||||
"*.log"
|
"*.log"
|
||||||
"*.egg-info"
|
"*.egg-info"
|
||||||
@@ -76,12 +82,6 @@
|
|||||||
"*.m4a"
|
"*.m4a"
|
||||||
".local/share/Steam"
|
".local/share/Steam"
|
||||||
".local/share/Trash"
|
".local/share/Trash"
|
||||||
"dist"
|
|
||||||
"/home/*/Pictures"
|
|
||||||
"/home/*/Videos"
|
|
||||||
"/home/*/go"
|
|
||||||
"/home/*/snap"
|
|
||||||
"/home/john/john-nas"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user