add flake lib

main
Felix Stupp 2 months ago
parent 91c72a02db
commit 08e73d0dec
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -42,12 +42,15 @@
{ self, ... }@inputs: { self, ... }@inputs:
let let
inherit (self) outputs; inherit (self) outputs;
inherit (outputs) lib;
# every flake "submodule" gets this passed: # every flake "submodule" gets this passed:
flakeArg = { flakeArg = {
# Usage in submodule: # Usage in submodule:
# { ... }@flakeArg: { } # { ... }@flakeArg: { }
# add "..." this so new ones can easily be added # add "..." this so new ones can easily be added
inherit inherit
# tools / shortcuts
lib # nixpkgs & my lib combined
# flake refs # flake refs
self # reflection self # reflection
inputs # evaluated inputs inputs # evaluated inputs
@ -71,6 +74,8 @@
default.imports = [ ./nix/hmModules ]; default.imports = [ ./nix/hmModules ];
}; };
lib = import ./nix/lib flakeArg;
nixosConfigurations = nixosConfigurations =
let let
nixpkgs = inputs.nixpkgs; nixpkgs = inputs.nixpkgs;

@ -0,0 +1,9 @@
{ inputs, lib, ... }@flakeArg:
let
nixpkgs = inputs.nixpkgs;
in
nixpkgs.lib
// {
}
Loading…
Cancel
Save