systemd.sysupdate.transfers
NixOS option
Specify transfers as a set of the names of the transfer files as the key and the configuration as its value. The configuration can use all upstream options. See sysupdate.d(5) for all available options.
type: attribute set of attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string) or a non-empty list of them)Default
{ }Example
declared in: nixos/modules/system/boot/systemd/sysupdate.nixView source on NixOS/nixpkgs →{
"10-uki" = {
Source = {
MatchPattern = [
"nixos_@v+@l-@d.efi"
"nixos_@v+@l.efi"
"nixos_@v.efi"
];
Path = "https://download.example.com/";
Type = "url-file";
};
Target = {
InstancesMax = 2;
MatchPattern = ''
nixos_@v+@l-@d.efi"; \
nixos_@v+@l.efi \
nixos_@v.efi
'';
Mode = "0444";
Path = "/EFI/Linux";
PathRelativeTo = "boot";
TriesDone = 0;
TriesLeft = 3;
Type = "regular-file";
};
Transfer = {
ProtectVersion = "%A";
};
};
}