mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
bunch of misc stuff i don't feel like commit messaging
This commit is contained in:
parent
46752bcb1d
commit
5823cab2c4
26 changed files with 173 additions and 168 deletions
|
|
@ -9,7 +9,6 @@ let
|
|||
in
|
||||
# Only good use case for rec
|
||||
rec {
|
||||
|
||||
wrench = lib.flip lib.pipe;
|
||||
|
||||
needsSystem = lib.flip builtins.elem [
|
||||
|
|
@ -63,6 +62,8 @@ rec {
|
|||
x
|
||||
else
|
||||
let
|
||||
# all arguments defined in the module
|
||||
funcArgs = lib.functionArgs imported;
|
||||
/*
|
||||
The names of all arguments which will be
|
||||
available to be inserted into the module arguments
|
||||
|
|
@ -85,17 +86,9 @@ rec {
|
|||
_dir is the "self" derived
|
||||
path to the directory containing the module
|
||||
*/
|
||||
_dir =
|
||||
let
|
||||
dir = builtins.dirOf x;
|
||||
in
|
||||
# Probably don't need this error check
|
||||
if (dir == builtins.storeDir) then null else dir;
|
||||
_dir = builtins.dirOf x;
|
||||
};
|
||||
|
||||
# all arguments defined in the module
|
||||
funcArgs = lib.functionArgs imported;
|
||||
|
||||
/*
|
||||
arguments which will be inserted
|
||||
set to the before per-system values
|
||||
|
|
@ -155,7 +148,6 @@ rec {
|
|||
// {
|
||||
_file = x;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
gerg-utils =
|
||||
|
|
@ -238,7 +230,6 @@ rec {
|
|||
}
|
||||
);
|
||||
in
|
||||
|
||||
if builtins.pathExists "${path}/${n}/call.nix" then
|
||||
let
|
||||
x = import "${path}/${n}/call.nix" pkgs;
|
||||
|
|
@ -246,7 +237,6 @@ rec {
|
|||
x.callPackage "${path}/${n}/package.nix" x.args
|
||||
else
|
||||
callPackage "${path}/${n}/package.nix" { }
|
||||
|
||||
))
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue