about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-01-21 20:50:09 +0900
committersefidel <contact@sefidel.net>2022-01-21 20:50:09 +0900
commite76260f53696fe99b998ee0017a76b260418ad99 (patch)
tree3cabde683320b5583646b1088b31147fd2bb933e /lib
parentd236c9d27f574c8f1e3bc883fc8fcf13e4a54626 (diff)
downloadnixrc-e76260f53696fe99b998ee0017a76b260418ad99.tar.gz
nixrc-e76260f53696fe99b998ee0017a76b260418ad99.zip
lib/mk_system: support extra overlays
Diffstat (limited to 'lib')
-rw-r--r--lib/mk_system.nix5
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;
   }
 )