refactor some nix code with pipe

This commit is contained in:
ulic-youthlic 2025-03-14 06:55:26 +08:00
parent 07546c9567
commit 36f623a93a
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 72 additions and 69 deletions

View file

@ -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)