Refactor flake structure with flake-parts
This commit is contained in:
parent
8ca6499da1
commit
cf83a45191
10 changed files with 203 additions and 176 deletions
17
flake/overlays.nix
Normal file
17
flake/overlays.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
rootPath = ./..;
|
||||
inherit (self) outputs;
|
||||
importWithArgs = lib.flip import {inherit inputs outputs;};
|
||||
in {
|
||||
flake.overlays =
|
||||
[
|
||||
"modifications"
|
||||
"additions"
|
||||
]
|
||||
|> (with lib; flip genAttrs (name: importWithArgs (rootPath + "/overlays/${name}")));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue