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
@ -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…
x
Reference in New Issue
Block a user