mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
use pipes because why not
This commit is contained in:
parent
6fb8365c03
commit
480ca0c41e
1 changed files with 21 additions and 9 deletions
|
@ -1,16 +1,28 @@
|
||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
let
|
let
|
||||||
defaultOverlays =
|
inherit (builtins)
|
||||||
|
map
|
||||||
|
filter
|
||||||
|
attrNames
|
||||||
|
readDir
|
||||||
|
;
|
||||||
# execute and import all overlay files in the current
|
# execute and import all overlay files in the current
|
||||||
# directory with the given args
|
# directory with the given args
|
||||||
builtins.map
|
# overlays =
|
||||||
# execute and import the overlay file
|
# map
|
||||||
(f: (import (./. + "/${f}") { inherit inputs; }))
|
# (f: (import (./. + "/${f}") { inherit inputs; }))
|
||||||
# find all overlay files in the current directory
|
# (filter (f: f != "default.nix") (attrNames (readDir ./.)));
|
||||||
(builtins.filter (f: f != "default.nix") (builtins.attrNames (builtins.readDir ./.)));
|
overlays =
|
||||||
|
readDir ./.
|
||||||
|
|> attrNames
|
||||||
|
|> filter (f: f != "default.nix")
|
||||||
|
|> map (f: import (./. + "/${f}") { inherit inputs; });
|
||||||
|
# map
|
||||||
|
# (f: (import (./. + "/${f}") { inherit inputs; }))
|
||||||
|
# (filter (f: f != "default.nix") (attrNames (readDir ./.)));
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = defaultOverlays ++ [
|
nixpkgs.overlays = overlays ++ [
|
||||||
(final: _prev: {
|
(final: _prev: {
|
||||||
stable = import inputs.stable {
|
stable = import inputs.stable {
|
||||||
system = final.system;
|
system = final.system;
|
||||||
|
|
Loading…
Reference in a new issue