File tree Expand file tree Collapse file tree
Users/WickedWizard/Programs/Selfhosted Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,6 +161,9 @@ rec {
161161 # Not a container, refer to Users/WickedWizard/Programs/Selfhosted/backup.nix.
162162 # Can contain the path with docker mount path, or without. Doesn't matter.
163163 backup = {
164+ blacklistedContainers = [
165+ "ollama.container"
166+ ] ;
164167 blacklistedPaths = [
165168 # lidarr.custom.downloadPath
166169 # lidarr.custom.music.libraryPath
Original file line number Diff line number Diff line change 66 ...
77} :
88let
9- inherit ( config' . containers . backup ) pwdFile blacklistedPaths location ;
9+ inherit ( config' . containers . backup )
10+ pwdFile
11+ blacklistedContainers
12+ blacklistedPaths
13+ location
14+ ;
1015 tmpLocation = "${ config . home . homeDirectory } /tmp-container-backup" ;
1116 containerCommand =
1217 cmd :
3439 paths = mapAttrsToList (
3540 qname : qval :
3641 if
37- hasAttrByPath [ "Container" "ContainerName" ] qval && hasAttrByPath [ "Container" "Volume" ] qval
42+ hasAttrByPath [ "Container" "ContainerName" ] qval
43+ # Container must not be blacklisted.
44+ && ! ( elem qname blacklistedContainers || elem qval . Container . ContainerName blacklistedContainers )
45+ && hasAttrByPath [ "Container" "Volume" ] qval
3846 then
3947 map (
4048 vname :
You can’t perform that action at this time.
0 commit comments