2016-10-20 20:54:38 +02:00
|
|
|
with import <stockholm/lib>;
|
2022-03-05 09:53:21 +01:00
|
|
|
let
|
|
|
|
pushBack = x: xs:
|
|
|
|
if elem x xs then
|
|
|
|
remove x xs ++ [ x ]
|
|
|
|
else
|
|
|
|
names;
|
|
|
|
in
|
2017-07-02 00:09:16 +02:00
|
|
|
|
2017-07-23 02:46:44 +02:00
|
|
|
self: super:
|
2017-07-02 00:09:16 +02:00
|
|
|
|
2017-07-23 02:46:44 +02:00
|
|
|
# Import files and subdirectories like they are overlays.
|
2022-03-05 09:46:11 +01:00
|
|
|
fix
|
|
|
|
(foldl' (flip extends) (_: super)
|
|
|
|
(map
|
|
|
|
(name: import (./. + "/${name}"))
|
|
|
|
(filter
|
|
|
|
(name: name != "default.nix" && !hasPrefix "." name)
|
2022-03-05 09:53:21 +01:00
|
|
|
(pushBack "override"
|
|
|
|
(attrNames (readDir ./.))))))
|