patos/modules/patagia-agent.nix
Daniel Lundin 86cc203737
Some checks failed
ci/woodpecker/push/ci Pipeline failed
feat(systemd): add and enable systext + confext units
2024-11-11 20:38:22 +01:00

34 lines
783 B
Nix

{
pkgs,
utils,
...
}:
{
environment.etc."sysupdate.patagia-agent.d".source =
let
format = pkgs.formats.ini { listToValue = toString; };
in
utils.systemdUtils.lib.definitions "sysupdate.patagia-agent.d" format {
"10-image.conf" = {
Source = {
MatchPattern = "patagia-agent_@v.raw";
Path = "https://images.dl.patagia.dev/patagia-agent/";
Type = "url-file";
};
Target = {
InstancesMax = 2;
Path = "/var/lib/extensions";
CurrentSymlink = "/etc/systemd/extensions/patagia-agent.raw";
Type = "regular-file";
MatchPattern = "patagia-agent_@v.raw";
};
Transfer = {
Verify = "no"; # FIXME: verify
};
};
};
}