diff options
-rw-r--r-- | machines/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/machines/default.nix b/machines/default.nix index d1373ee9..b8986f43 100644 --- a/machines/default.nix +++ b/machines/default.nix @@ -11,8 +11,13 @@ let }; iso = let isoModule = "${nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix"; + patchedModule = (import nixpkgs {}).runCommand "iso-image.nix" {} '' + sed -e 's|../../../lib/|${nixpkgs}/nixos/lib/|g' \ + -e 's/"nomodeset"//g' \ + "${isoModule}" > "$out" + ''; wrapIso = { config, pkgs, lib, ... }@attrs: let - eval = (import isoModule attrs); + eval = (import patchedModule attrs); evalcfg = eval.config or {}; bootcfg = evalcfg.boot or {}; fscfg = evalcfg.fileSystems or {}; |