fs: overwrite symlinks/data on deploy

This commit is contained in:
2024-10-04 09:26:50 +00:00
parent c290358cad
commit 705a7a83b1

View File

@@ -160,12 +160,14 @@ let
systemd.tmpfiles.settings."00-10-sane-fs"."${path}".d = opt.acl;
};
mkFileConfig = path: opt: {
systemd.tmpfiles.settings."00-10-sane-fs"."${path}".C = opt.acl // {
# "C+" = copy and (hopefully?) overwrite whatever's already there
systemd.tmpfiles.settings."00-10-sane-fs"."${path}"."C+" = opt.acl // {
argument = opt.file.copyFrom;
};
};
mkSymlinkConfig = path: opt: {
systemd.tmpfiles.settings."00-10-sane-fs"."${path}".L = opt.acl // {
# "L+" = symlink and overwrite whatever's already there
systemd.tmpfiles.settings."00-10-sane-fs"."${path}"."L+" = opt.acl // {
argument = opt.symlink.target;
};
};