garage: fix missing stateVersion and default pkg

* stateVersion was not in scope, added config.system.systemVersion
* garage_0_8_0 -> garage_0_8, the former does not exist
This commit is contained in:
Michael Lingelbach 2023-03-27 13:15:58 -07:00
parent a71e45961e
commit e6854e7d3a

View File

@ -60,7 +60,7 @@ in
package = mkOption {
# TODO: when 23.05 is released and if Garage 0.9 is the default, put a stateVersion check.
default = if versionAtLeast stateVersion "23.05" then pkgs.garage_0_8_0
default = if versionAtLeast config.system.stateVersion "23.05" then pkgs.garage_0_8
else pkgs.garage_0_7;
defaultText = literalExpression "pkgs.garage_0_7";
type = types.package;