diff options
author | sefidel <contact@sefidel.net> | 2022-01-21 20:50:09 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2022-01-21 20:50:09 +0900 |
commit | e76260f53696fe99b998ee0017a76b260418ad99 (patch) | |
tree | 3cabde683320b5583646b1088b31147fd2bb933e /lib | |
parent | d236c9d27f574c8f1e3bc883fc8fcf13e4a54626 (diff) | |
download | nixrc-e76260f53696fe99b998ee0017a76b260418ad99.tar.gz nixrc-e76260f53696fe99b998ee0017a76b260418ad99.zip |
lib/mk_system: support extra overlays
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mk_system.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mk_system.nix b/lib/mk_system.nix index d6a6d79..8af0aa6 100644 --- a/lib/mk_system.nix +++ b/lib/mk_system.nix @@ -1,6 +1,6 @@ { self, ... } @ args: -{ name, nixpkgs, extraModules }: +{ name, nixpkgs, overlays ? null, extraModules ? null }: nixpkgs.lib.nixosSystem ( let configFolder = "${self}/nixos"; @@ -22,6 +22,7 @@ nixpkgs.lib.nixosSystem ( hardware ../nixos/modules/flake.nix ../nixos/modules/nix.nix - ] ++ nixpkgs.lib.optionals (extraModules != null) extraModules; + ] ++ nixpkgs.lib.optional (overlays != null) { nixpkgs.overlays = overlays; } + ++ nixpkgs.lib.optionals (extraModules != null) extraModules; } ) |