flake: add externModules list

Fixes #44. Easily add external modules from other flakes by dropping
them in the list.
This commit is contained in:
Timothy DeHerrera 2020-12-28 15:07:15 -07:00
parent 167c692f9b
commit bdfdc4da54
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
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;