From 11000f56e23bcef74d01213e8e1ce7cf82375265 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Wed, 1 Jan 2020 19:45:49 -0700 Subject: [PATCH] niximg: use modulesPath --- hosts/default.nix | 3 --- hosts/niximg.nix | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hosts/default.nix b/hosts/default.nix index d67a8b8f..e7d0e1ad 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -31,15 +31,12 @@ let local = import "${toString ./.}/${self}.nix"; - iso = nixpkgs.lib.optionalAttrs (self == "niximg") - (import "${nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix"); in attrValues flake.nixosModules ++ [ core global local home - iso ]; }; diff --git a/hosts/niximg.nix b/hosts/niximg.nix index 09e5f64d..2f492721 100644 --- a/hosts/niximg.nix +++ b/hosts/niximg.nix @@ -1,6 +1,8 @@ +{ modulesPath, ... }: { imports = [ ./NixOS.nix + "${modulesPath}/installer/cd-dvd/iso-image.nix" ]; isoImage.makeEfiBootable = true;