forked from pub-solar/os
flake: add externModules
list
Fixes #44. Easily add external modules from other flakes by dropping them in the list.
This commit is contained in:
parent
167c692f9b
commit
bdfdc4da54
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue