Revert "tmpfiles: add option to purge rules' targets on change"
This reverts commit b4350d54c2.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
6a40be5eaf
commit
06aeeed62f
7 changed files with 58 additions and 151 deletions
|
|
@ -2,8 +2,8 @@
|
|||
imports = [ ./common-stubs.nix ];
|
||||
|
||||
systemd.user.tmpfiles.settings = {
|
||||
cache.rules."%C".d.age = "4 weeks";
|
||||
myTool.rules."%h/.config/myTool.conf"."f+" = {
|
||||
cache."%C".d.age = "4 weeks";
|
||||
myTool."%h/.config/myTool.conf"."f+" = {
|
||||
mode = "0644";
|
||||
user = "alice";
|
||||
group = "users";
|
||||
|
|
@ -12,8 +12,6 @@
|
|||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/user-tmpfiles.d/home-manager-purge-on-change.conf
|
||||
|
||||
cacheRulesFile=home-files/.config/user-tmpfiles.d/home-manager-cache.conf
|
||||
assertFileExists $cacheRulesFile
|
||||
assertFileRegex $cacheRulesFile "^'d' '%C' '-' '-' '-' '4 weeks' $"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue