Remove storeCorruptionWarning

The warning at the templating site is more appropriately placed.
This commit is contained in:
Louis Bettens 2021-08-24 11:57:11 +02:00
parent 6585de04f7
commit c9372d07a6
5 changed files with 0 additions and 14 deletions

View File

@ -20,7 +20,6 @@ let
miniguests.container.configuration = {
boot.miniguest.enable = true;
boot.miniguest.guestType = "lxc";
boot.miniguest.storeCorruptionWarning = false;
};
}
];

View File

@ -37,7 +37,6 @@ let
{
boot.miniguest.enable = true;
boot.miniguest.guestType = "lxc";
boot.miniguest.storeCorruptionWarning = false;
}
];
};

View File

@ -19,7 +19,6 @@ lib.optionalAttrs stdenv.isLinux {
miniguests.container.configuration = {
boot.miniguest.enable = true;
boot.miniguest.guestType = "lxc";
boot.miniguest.storeCorruptionWarning = false;
};
environment.systemPackages = [ miniguest ];

View File

@ -24,11 +24,6 @@ with lib;
default = "qemu";
type = types.enum [ "qemu" "lxc" ];
};
storeCorruptionWarning = mkOption {
description = "Whether to display a warning about container guests being able to corrupt the Nix store.";
default = true;
type = types.bool;
};
};
};

View File

@ -20,11 +20,5 @@ with lib;
let cfg = config.boot.miniguest;
in
mkIf (cfg.enable && cfg.guestType == "lxc") {
warnings = lib.optional (cfg.storeCorruptionWarning) ''
Running a guest in LXC without enabling UID mapping or otherwise confining the guest's superuser can result in host store corruption!
Double-check your container settings!
You can suppress this warning with:
boot.miniguest.storeCorruptionWarning = false;
'';
boot.isContainer = mkDefault true;
}