Remove file bindmount support from zfs module
This commit is contained in:
parent
f0c8da98eb
commit
ee95a80263
2 changed files with 2 additions and 16 deletions
|
@ -22,7 +22,6 @@
|
|||
example = [
|
||||
{ path = ".config/syncthing"; type = "data"; }
|
||||
{ path = ".cache/nix-index"; type = "cache"; }
|
||||
{ path = ".gnupg/pubring.kbx"; type = "data"; file = true; }
|
||||
];
|
||||
};
|
||||
backups = lib.mkOption {
|
||||
|
@ -88,17 +87,7 @@
|
|||
|
||||
systemd.services =
|
||||
let
|
||||
makeLinkScript = config: lib.strings.concatStringsSep "\n" (map
|
||||
(location:
|
||||
if location.file or false then
|
||||
''
|
||||
mkdir -p $(dirname "${location.path}")
|
||||
[ -f "${location.path}" ] || touch "${location.path}"
|
||||
''
|
||||
else
|
||||
''mkdir -p "${location.path}"''
|
||||
)
|
||||
config);
|
||||
makeLinkScript = config: lib.strings.concatStringsSep "\n" (map (location: ''mkdir -p "${location.path}"'') config);
|
||||
systemLinksScript = makeLinkScript config.chvp.zfs.systemLinks;
|
||||
homeLinksScript = makeLinkScript config.chvp.zfs.homeLinks;
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue