Skip to content
forked from divnix/digga

Commit

Permalink
Merge pull request divnix#45 from nrdxp/external-modules
Browse files Browse the repository at this point in the history
flake: add `externModules` list
  • Loading branch information
nrdxp authored Dec 28, 2020
2 parents 1bbb334 + 57c1a1a commit 4ed7821
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
system = "x86_64-linux";

externOverlays = [ nur.overlay ];
externModules = [ home.nixosModules.home-manager ];

pkgset =
let overlays = (attrValues self.overlays) ++ externOverlays; in
Expand All @@ -33,7 +34,7 @@
outputs = {
nixosConfigurations =
import ./hosts (recursiveUpdate inputs {
inherit lib pkgset system utils;
inherit lib pkgset system utils externModules;
});

overlay = import ./pkgs;
Expand Down
5 changes: 2 additions & 3 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, self
, system
, utils
, externModules
, ...
}:
let
Expand All @@ -19,8 +20,6 @@ let

modules =
let
inherit (home.nixosModules) home-manager;

core = self.nixosModules.profiles.core;

global = {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4ed7821

Please sign in to comment.