From d947bec2beb115746c5a52a2302ad58db64948b7 Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler Date: Sat, 6 Nov 2021 22:09:08 +0100 Subject: [PATCH] added optional configuration override for default.nix Signed-off-by: Stefan Ellmauthaler --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 2d05311..113674a 100644 --- a/default.nix +++ b/default.nix @@ -7,7 +7,7 @@ extraModules = if args ? extraModules then args.extraModules else [ ]; extraOverlays = if args ? extraOverlays then args.extraOverlays else [ ]; pkgs = flakes.nixpkgs; - configuration = import ./configuration.nix {inherit extraOverlays system pkgs name flakes flakeOutputs;} ; + configuration = if args ? configuration then args.configuration else import ./configuration.nix {inherit extraOverlays system pkgs name flakes flakeOutputs;} ; in { inherit name;