git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/glance: set default glance package
49efa08Antoine Eiche
nixos/modules/virtualisation/openstack/glance.nix+1−5
@@ -42,6 +42,7 @@ in {
42 options.virtualisation.openstack.glance = {
42 options.virtualisation.openstack.glance = {
43 package = mkOption {
43 package = mkOption {
44 type = types.package;
44 type = types.package;
45+ default = pkgs.glance;
45 example = literalExample "pkgs.glance";
46 example = literalExample "pkgs.glance";
46 description = ''
47 description = ''
47 Glance package to use.
48 Glance package to use.
@@ -149,11 +150,6 @@ in {
149 };
150 };
150
151
151 config = mkIf cfg.enable {
152 config = mkIf cfg.enable {
152− # Note: when changing the default, make it conditional on
153− # ‘system.stateVersion’ to maintain compatibility with existing
154− # systems!
155− virtualisation.openstack.glance.package = mkDefault pkgs.glance;
156−
157 users.extraUsers = [{
153 users.extraUsers = [{
158 name = "glance";
154 name = "glance";
159 group = "glance";
155 group = "glance";