34 lines
783 B
Nix
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
|
|
};
|
|
};
|
|
};
|
|
}
|