refactor some nix code with pipe
This commit is contained in:
parent
07546c9567
commit
36f623a93a
4 changed files with 72 additions and 69 deletions
|
|
@ -2,14 +2,14 @@
|
|||
final: prev:
|
||||
let
|
||||
inherit (prev) lib;
|
||||
overlay-files = [
|
||||
./spotify.nix
|
||||
./niri.nix
|
||||
./ghostty.nix
|
||||
./juicity.nix
|
||||
./dae.nix
|
||||
./jujutsu.nix
|
||||
];
|
||||
overlay-list = map (file: import file args) overlay-files;
|
||||
in
|
||||
(lib.composeManyExtensions overlay-list) final prev
|
||||
[
|
||||
./spotify.nix
|
||||
./niri.nix
|
||||
./ghostty.nix
|
||||
./juicity.nix
|
||||
./dae.nix
|
||||
./jujutsu.nix
|
||||
]
|
||||
|> map (file: import file args)
|
||||
|> (overlays: (lib.composeManyExtensions overlays) final prev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue