Merge pull request #285315 from jmbaur/sysupdate-fixes

nixos/sysupdate: allow lists in sysupdate config
This commit is contained in:
Will Fancher
2024-02-07 03:01:49 -05:00
committed by GitHub
2 changed files with 9 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
let
cfg = config.systemd.sysupdate;
format = pkgs.formats.ini { };
format = pkgs.formats.ini { listToValue = toString; };
definitionsDirectory = utils.systemdUtils.lib.definitions
"sysupdate.d"
@@ -79,7 +79,7 @@ in
Source = {
Type = "url-file";
Path = "https://download.example.com/";
MatchPattern = "nixos_@v.efi.xz";
MatchPattern = [ "nixos_@v+@l-@d.efi" "nixos_@v+@l.efi" "nixos_@v.efi" ];
};
Target = {