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

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