Check whether fileSystems defines the root FS
This commit is contained in:
parent
8951be2d80
commit
dc87f8e080
@ -330,6 +330,11 @@ in
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
assertions = singleton
|
||||||
|
{ assertion = any (fs: fs.mountPoint == "/") (attrValues config.fileSystems);
|
||||||
|
message = "The ‘fileSystems’ option does not specify your root file system.";
|
||||||
|
};
|
||||||
|
|
||||||
system.build.bootStage1 = bootStage1;
|
system.build.bootStage1 = bootStage1;
|
||||||
system.build.initialRamdisk = initialRamdisk;
|
system.build.initialRamdisk = initialRamdisk;
|
||||||
system.build.extraUtils = extraUtils;
|
system.build.extraUtils = extraUtils;
|
||||||
|
@ -81,6 +81,7 @@ in
|
|||||||
options = {
|
options = {
|
||||||
|
|
||||||
fileSystems = mkOption {
|
fileSystems = mkOption {
|
||||||
|
default = {};
|
||||||
example = {
|
example = {
|
||||||
"/".device = "/dev/hda1";
|
"/".device = "/dev/hda1";
|
||||||
"/data" = {
|
"/data" = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user