From f463a991fd86ddb357e9d182a3f0713a8ebaf148 Mon Sep 17 00:00:00 2001 From: oluceps Date: Wed, 6 Sep 2023 12:35:58 +0800 Subject: [PATCH] chore: expand default overlay to both --- flake.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 66f7309..747fef0 100644 --- a/flake.nix +++ b/flake.nix @@ -40,14 +40,21 @@ }; flake = let + moduleName = [ "dae" "daed" ]; genFlake = n: { - nixosModules = { ${n} = import ./${n}/module.nix inputs; }; + nixosModules = { + ${n} = import ./${n}/module.nix inputs; + }; overlays = { - default = final: prev: { ${n} = inputs.self.packages.${n}; }; ${n} = final: prev: { ${n} = inputs.self.packages.${n}; }; }; }; in - inputs.nixpkgs.lib.mkMerge (map genFlake [ "dae" "daed" ]); + inputs.nixpkgs.lib.mkMerge ( + (map genFlake moduleName) ++ [{ + overlays.default = final: prev: inputs.nixpkgs.lib.genAttrs moduleName + (n: { ${n} = inputs.self.packages.${n}; }); + }] + ); }; }