From 0c4f3acb281be6290c55a6e96bc29fab5b5c7a11 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 11 Sep 2023 18:24:28 +0200 Subject: stockholm -> hrm --- pkgs/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkgs/default.nix (limited to 'pkgs/default.nix') diff --git a/pkgs/default.nix b/pkgs/default.nix new file mode 100644 index 0000000..41e17c8 --- /dev/null +++ b/pkgs/default.nix @@ -0,0 +1,24 @@ +self: super: + +let + inherit (super) lib; + + mylib = import ../lib/pure.nix { + inherit lib; + }; + + pushBack = x: xs: + if builtins.elem x xs then + lib.remove x xs ++ [ x ] + else + xs; +in + +# Import files and subdirectories like they are overlays. +lib.fix + (builtins.foldl' (lib.flip lib.extends) (_: super) + (map + (name: import (./. + "/${name}")) + (pushBack "override" + (builtins.attrNames + (lib.filterAttrs mylib.isNixDirEntry (builtins.readDir ./.)))))) -- cgit v1.2.3