git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/glance: set default glance package

Before, it was overridden in the config section to avoid problem related to manual generation.

commit49efa083c780cf24a65a90adf0caac4cb70df415 authorAntoine Eiche <lewo@abesis.fr> dateSat 31 Dec 2016, 09:10 (10 years ago) parent165089f
1 file changed+1−5
nixos/modules/virtualisation/openstack/glance.nix+1−5
nixos/modules/virtualisation/openstack/glance.nix+1−5
@@ -42,6 +42,7 @@ in {
4242 options.virtualisation.openstack.glance = {
4343 package = mkOption {
4444 type = types.package;
45+ default = pkgs.glance;
4546 example = literalExample "pkgs.glance";
4647 description = ''
4748 Glance package to use.
@@ -149,11 +150,6 @@ in {
149150 };
150151
151152 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−
157153 users.extraUsers = [{
158154 name = "glance";
159155 group = "glance";