mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/glance: set default glance package
Before, it was overridden in the config section to avoid problem related to manual generation.
This commit is contained in:
parent
165089f9d7
commit
49efa083c7
1 changed files with 1 additions and 5 deletions
|
@ -42,6 +42,7 @@ in {
|
||||||
options.virtualisation.openstack.glance = {
|
options.virtualisation.openstack.glance = {
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
|
default = pkgs.glance;
|
||||||
example = literalExample "pkgs.glance";
|
example = literalExample "pkgs.glance";
|
||||||
description = ''
|
description = ''
|
||||||
Glance package to use.
|
Glance package to use.
|
||||||
|
@ -149,11 +150,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# Note: when changing the default, make it conditional on
|
|
||||||
# ‘system.stateVersion’ to maintain compatibility with existing
|
|
||||||
# systems!
|
|
||||||
virtualisation.openstack.glance.package = mkDefault pkgs.glance;
|
|
||||||
|
|
||||||
users.extraUsers = [{
|
users.extraUsers = [{
|
||||||
name = "glance";
|
name = "glance";
|
||||||
group = "glance";
|
group = "glance";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue