Skip to content

Commit

Permalink
nixos/nixos-containers: default boot.enableContainers to true
Browse files Browse the repository at this point in the history
Related to NixOS#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.
  • Loading branch information
sorki committed Mar 4, 2021
1 parent c4c5bf8 commit fc2fa3c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions nixos/modules/virtualisation/nixos-containers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -439,21 +439,16 @@ in
default = false;
description = ''
Whether this NixOS machine is a lightweight container running
in another NixOS system. If set to true, support for nested
containers is disabled by default, but can be reenabled by
setting <option>boot.enableContainers</option> to true.
in another NixOS system.
'';
};

boot.enableContainers = mkOption {
type = types.bool;
default = !config.boot.isContainer;
default = true;
description = ''
Whether to enable support for NixOS containers. Defaults to true
(at no cost if containers are not actually used), but only if the
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).
(at no cost if containers are not actually used).
'';
};

Expand Down

0 comments on commit fc2fa3c

Please sign in to comment.