Merge pull request #45 from nrdxp/external-modules

flake: add `externModules` list
This commit is contained in:
Timothy DeHerrera 2020-12-28 15:09:52 -07:00 committed by GitHub
commit db653d6a8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -23,6 +23,7 @@
system = "x86_64-linux";
externOverlays = [ nur.overlay ];
externModules = [ home.nixosModules.home-manager ];
pkgset =
let overlays = (attrValues self.overlays) ++ externOverlays; in
@ -33,7 +34,7 @@
outputs = {
nixosConfigurations =
import ./hosts (recursiveUpdate inputs {
inherit lib pkgset system utils;
inherit lib pkgset system utils externModules;
});
overlay = import ./pkgs;

View file

@ -6,6 +6,7 @@
, self
, system
, utils
, externModules
, ...
}:
let
@ -19,8 +20,6 @@ let
modules =
let
inherit (home.nixosModules) home-manager;
core = self.nixosModules.profiles.core;
global = {
@ -68,7 +67,7 @@ let
attrValues (removeAttrs self.nixosModules [ "profiles" ]);
in
flakeModules ++ [ core global local home-manager overrides ];
flakeModules ++ [ core global local overrides ] ++ externModules;
extraArgs = {
inherit system;