mirror of
https://github.com/0xbbjubjub/miniguest.git
synced 2024-09-17 17:28:00 +03:00
Remove storeCorruptionWarning
The warning at the templating site is more appropriately placed.
This commit is contained in:
parent
6585de04f7
commit
c9372d07a6
@ -20,7 +20,6 @@ let
|
||||
miniguests.container.configuration = {
|
||||
boot.miniguest.enable = true;
|
||||
boot.miniguest.guestType = "lxc";
|
||||
boot.miniguest.storeCorruptionWarning = false;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
@ -37,7 +37,6 @@ let
|
||||
{
|
||||
boot.miniguest.enable = true;
|
||||
boot.miniguest.guestType = "lxc";
|
||||
boot.miniguest.storeCorruptionWarning = false;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
@ -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 ];
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user