fs: overwrite symlinks/data on deploy
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user