diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-06-29 19:37:25 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-06-29 19:37:25 +0200 |
commit | d0b196a78efcf3b38ccc414654c7c95c5e1ae678 (patch) | |
tree | bfee74d9938decd7309c9abc04c5b5d2621ff595 /machines | |
parent | f524db15e564b9b4d264847ab146e404691efc25 (diff) |
machines: Remove /boot options from ISO images.
We can't really do a "mkForce {}" or "mkForce null" on the submodule type and the upstream module throws an error on null values, so we simply define a dummy fileSystem with the noauto option set. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines')
-rw-r--r-- | machines/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/machines/default.nix b/machines/default.nix index 54b70321..d1373ee9 100644 --- a/machines/default.nix +++ b/machines/default.nix @@ -23,7 +23,13 @@ let boot = bootcfg // lib.optionalAttrs (bootcfg ? loader) { loader = lib.mkForce bootcfg.loader; }; - fileSystems = lib.mapAttrs (lib.const lib.mkForce) fscfg; + fileSystems = lib.mapAttrs (lib.const lib.mkForce) fscfg // { + "/boot" = lib.mkForce (fscfg."/boot" or { + device = "none"; + fsType = "none"; + options = "noauto"; + }); + }; }; }; in import "${nixpkgs}/nixos/lib/eval-config.nix" { |