1
0
Fork 0

weewx: umount overlayfs

This commit is contained in:
Daniel Kempkens 2024-07-01 15:30:25 +02:00
parent 4323142b3d
commit 7f9feeff01
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }: { pkgs, lib, config, ... }:
let let
home = "/var/lib/weewx-weather"; home = "/var/lib/weewx-weather";
@ -40,6 +40,7 @@ in
User = "weewx"; User = "weewx";
Group = "weewx"; Group = "weewx";
ExecStart = "${pkg}/bin/weewxd --config=${config.age.secrets.weewx-config.path}"; ExecStart = "${pkg}/bin/weewxd --config=${config.age.secrets.weewx-config.path}";
ExecStopPost = "-!${lib.getExe pkgs.umount} ${home}/weewx-data";
}; };
}; };