trying something?
parent
6fdc07c9eb
commit
ef4d27f82c
|
@ -9,11 +9,13 @@ let
|
||||||
});
|
});
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
libExt = import ./. lib;
|
||||||
|
|
||||||
inherit (inputs.home-manager.lib) homeManagerConfiguration;
|
inherit (inputs.home-manager.lib) homeManagerConfiguration;
|
||||||
inherit (lib) nixosSystem;
|
inherit (lib) nixosSystem;
|
||||||
inherit (lib.strings) optionalString;
|
inherit (lib.strings) optionalString;
|
||||||
inherit (lib.attrsets) nameValuePair;
|
inherit (lib.attrsets) nameValuePair;
|
||||||
|
inherit (libExt) right;
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
toPartialNixosConfig =
|
toPartialNixosConfig =
|
||||||
|
@ -32,7 +34,7 @@ rec {
|
||||||
});
|
});
|
||||||
compileSystems =
|
compileSystems =
|
||||||
systems:
|
systems:
|
||||||
lib.right
|
right
|
||||||
builtins.listToAttrs
|
builtins.listToAttrs
|
||||||
(map toPartialNixosConfig)
|
(map toPartialNixosConfig)
|
||||||
systems;
|
systems;
|
||||||
|
@ -56,7 +58,7 @@ rec {
|
||||||
});
|
});
|
||||||
compileHomes =
|
compileHomes =
|
||||||
systems:
|
systems:
|
||||||
lib.right
|
right
|
||||||
builtins.listToAttrs
|
builtins.listToAttrs
|
||||||
(map toPartialHomeManagerConfig)
|
(map toPartialHomeManagerConfig)
|
||||||
systems;
|
systems;
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
final: prev:
|
lib:
|
||||||
let
|
|
||||||
inherit (final) isFunction;
|
|
||||||
in
|
|
||||||
rec {
|
rec {
|
||||||
# Ternary operator
|
# Ternary operator
|
||||||
# Exaample:
|
# Exaample:
|
||||||
|
@ -12,7 +9,7 @@ rec {
|
||||||
# Right-associate and chain following single-operand functions
|
# Right-associate and chain following single-operand functions
|
||||||
# Example:
|
# Example:
|
||||||
# right f g h 1 => f(g(h(1)))
|
# right f g h 1 => f(g(h(1)))
|
||||||
right = f: g: tern (isFunction g)
|
right = f: g: tern (lib.isFunction g)
|
||||||
(right (x: f (g (x))))
|
(right (x: f (g (x))))
|
||||||
(f (g));
|
(f (g));
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
final: prev:
|
||||||
|
(import ./. { lib = prev; })
|
|
@ -3,7 +3,7 @@ let
|
||||||
callDefaultPackage = path: prev.callPackage path { };
|
callDefaultPackage = path: prev.callPackage path { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
lib = prev.lib.extend import ../lib;
|
lib = prev.lib.extend import ../lib/overlay.nix;
|
||||||
|
|
||||||
wrapWine = callDefaultPackage ./wrapWine;
|
wrapWine = callDefaultPackage ./wrapWine;
|
||||||
writeXrandrScriptBin = callDefaultPackage ./writeXrandrScriptBin;
|
writeXrandrScriptBin = callDefaultPackage ./writeXrandrScriptBin;
|
||||||
|
|
Loading…
Reference in New Issue