niximg: use modulesPath

This commit is contained in:
Timothy DeHerrera 2020-01-01 19:45:49 -07:00
parent 1493f43ba7
commit 11000f56e2
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
2 changed files with 2 additions and 3 deletions

View file

@ -31,15 +31,12 @@ let
local = import "${toString ./.}/${self}.nix"; local = import "${toString ./.}/${self}.nix";
iso = nixpkgs.lib.optionalAttrs (self == "niximg")
(import "${nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix");
in in
attrValues flake.nixosModules ++ [ attrValues flake.nixosModules ++ [
core core
global global
local local
home home
iso
]; ];
}; };

View file

@ -1,6 +1,8 @@
{ modulesPath, ... }:
{ {
imports = [ imports = [
./NixOS.nix ./NixOS.nix
"${modulesPath}/installer/cd-dvd/iso-image.nix"
]; ];
isoImage.makeEfiBootable = true; isoImage.makeEfiBootable = true;