imapnotify: use direct nix store path for config
As pointed out in #3291, using the XDG symlink means the agent/unit files don’t change when the contents of the config changes, and so the service will not be restarted.
This commit is contained in:
parent
86157256d2
commit
fad475553a
3 changed files with 9 additions and 11 deletions
|
|
@ -33,8 +33,9 @@ with lib;
|
|||
nmt.script = let
|
||||
serviceFileName = "org.nix-community.home.imapnotify-hm-example.com.plist";
|
||||
in ''
|
||||
serviceFile=LaunchAgents/${serviceFileName}
|
||||
serviceFile="LaunchAgents/${serviceFileName}"
|
||||
serviceFileNormalized="$(normalizeStorePaths "$serviceFile")"
|
||||
assertFileExists $serviceFile
|
||||
assertFileContent $serviceFile ${./launchd.plist}
|
||||
assertFileContent $serviceFileNormalized ${./launchd.plist}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<array>
|
||||
<string>@goimapnotify@/bin/goimapnotify</string>
|
||||
<string>-conf</string>
|
||||
<string>/home/hm-user/.config/imapnotify/imapnotify-hm-example.com-config.json</string>
|
||||
<string>/nix/store/00000000000000000000000000000000-imapnotify-hm-example.com-config.json</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue