fix permissions of /nix/persist/private, to be user-writable

this is important for my rsync-net backup scripts, which need to record timestamps in there
This commit is contained in:
2024-07-25 18:42:45 +00:00
parent 2203d6db59
commit b554d32133

View File

@@ -45,7 +45,10 @@ lib.mkIf config.sane.persist.enable
# let sane.fs know about the mount
sane.fs."${origin}".mount = {};
# it also needs to know that the underlying device is an ordinary folder
sane.fs."${backing}" = sane-lib.fs.wantedDir;
sane.fs."${backing}" = sane-lib.fs.wanted {
dir.acl.user = config.sane.defaultUser;
# dir.acl.mode = "755";
};
# in order for non-systemd `mount` to work, the mount point has to already be created, so make that a default target
systemd.units = let
originUnit = config.sane.fs."${origin}".generated.unit;