nixos: fixes for disabling containers by default (#436855)

This commit is contained in:
K900
2025-08-25 22:31:33 +03:00
committed by GitHub
5 changed files with 3 additions and 6 deletions
@@ -2,7 +2,7 @@
We'll cover imperative container management using `nixos-container`
first. Be aware that container management is currently only possible as
`root`.
`root`, and that you need to enable [](#opt-boot.enableContainers) explicitly.
You create a container with identifier `foo` as follows:
-3
View File
@@ -30,9 +30,6 @@ in
fish.generateCompletions = mkDefault false;
};
# This pulls in nixos-containers which depends on Perl.
boot.enableContainers = mkDefault false;
services = {
logrotate.enable = mkDefault false;
udisks2.enable = mkDefault false;
-1
View File
@@ -11,7 +11,6 @@
system.tools.nixos-generate-config.enable = lib.mkDefault false;
programs.less.lessopen = lib.mkDefault null;
programs.command-not-found.enable = lib.mkDefault false;
boot.enableContainers = lib.mkDefault false;
boot.loader.grub.enable = lib.mkDefault false;
environment.defaultPackages = lib.mkDefault [ ];
documentation.info.enable = lib.mkDefault false;
+2
View File
@@ -19,6 +19,8 @@
{
imports = [ ../modules/installer/cd-dvd/channel.nix ];
boot.enableContainers = true;
# XXX: Sandbox setup fails while trying to hardlink files from the host's
# store file system into the prepared chroot directory.
nix.settings.sandbox = false;
-1
View File
@@ -11,7 +11,6 @@
{ pkgs, lib, ... }:
{
system.disableInstallerTools = true;
boot.enableContainers = false;
environment.defaultPackages = [ ];
};