2024-09-12 21:57:01 +02:00
|
|
|
{ config, ... }: {
|
|
|
|
systemd.sysupdate = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
transfers = {
|
|
|
|
"10-uki" = {
|
|
|
|
Source = {
|
|
|
|
MatchPattern = [
|
|
|
|
"${config.boot.uki.name}_@v.efi.xz"
|
|
|
|
];
|
|
|
|
|
|
|
|
# We could fetch updates from the network as well:
|
|
|
|
#
|
|
|
|
# Path = "https://download.example.com/";
|
|
|
|
# Type = "url-file";
|
|
|
|
Path = "/var/updates/";
|
|
|
|
Type = "regular-file";
|
|
|
|
};
|
|
|
|
Target = {
|
|
|
|
InstancesMax = 2;
|
|
|
|
MatchPattern = [
|
|
|
|
"${config.boot.uki.name}_@v.efi"
|
|
|
|
];
|
|
|
|
|
|
|
|
Mode = "0444";
|
|
|
|
Path = "/EFI/Linux";
|
|
|
|
PathRelativeTo = "boot";
|
|
|
|
|
|
|
|
Type = "regular-file";
|
|
|
|
};
|
|
|
|
Transfer = {
|
|
|
|
ProtectVersion = "%A";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"20-store" = {
|
|
|
|
Source = {
|
|
|
|
MatchPattern = [
|
2024-09-13 09:25:45 +02:00
|
|
|
"${config.boot.uki.name}_@v.img.xz"
|
2024-09-12 21:57:01 +02:00
|
|
|
];
|
|
|
|
# Path = "https://download.example.com/";
|
|
|
|
# Type = "url-file";
|
|
|
|
Path = "/var/updates/";
|
|
|
|
Type = "regular-file";
|
|
|
|
};
|
|
|
|
|
|
|
|
Target = {
|
|
|
|
InstancesMax = 2;
|
|
|
|
|
|
|
|
# This doesn't work, because / is a tmpfs and the heuristic is not that smart.
|
|
|
|
#
|
|
|
|
# Path = "auto";
|
|
|
|
Path = "/dev/sda";
|
|
|
|
|
2024-09-13 09:25:45 +02:00
|
|
|
MatchPattern = "${config.boot.uki.name}_@v";
|
2024-09-12 21:57:01 +02:00
|
|
|
|
|
|
|
Type = "partition";
|
|
|
|
ReadOnly = "yes";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|