Skip to content

Commit

Permalink
chore: expand default overlay to both
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Sep 6, 2023
1 parent 2ab0fdf commit f463a99
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}; });
}]
);
};
}

0 comments on commit f463a99

Please sign in to comment.