nixos/nixos-containers: default boot.enableContainers to true
Related to #85746 which addresses documentation issue, digging deeper for a reason why this was disabled was simply because it wasn't working which is not the case anymore.
This commit is contained in:
parent
c4c5bf8b7c
commit
fc2fa3cda5
@ -439,21 +439,16 @@ in
|
|||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
Whether this NixOS machine is a lightweight container running
|
Whether this NixOS machine is a lightweight container running
|
||||||
in another NixOS system. If set to true, support for nested
|
in another NixOS system.
|
||||||
containers is disabled by default, but can be reenabled by
|
|
||||||
setting <option>boot.enableContainers</option> to true.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.enableContainers = mkOption {
|
boot.enableContainers = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = !config.boot.isContainer;
|
default = true;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to enable support for NixOS containers. Defaults to true
|
Whether to enable support for NixOS containers. Defaults to true
|
||||||
(at no cost if containers are not actually used), but only if the
|
(at no cost if containers are not actually used).
|
||||||
system is not itself a lightweight container of a host.
|
|
||||||
To enable support for nested containers, this option has to be
|
|
||||||
explicitly set to true (in the outer container).
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user