os/lib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
456 B
Nix
Raw Normal View History

2023-10-03 11:50:01 +00:00
{ lib, inputs, ... }: {
# Configuration common to all Linux systems
flake = {
2023-10-03 12:21:09 +00:00
b12f-os.lib = let
2023-10-03 11:50:01 +00:00
callLibs = file: import file {inherit lib;};
in rec {
## Define your own library functions here!
#id = x: x;
## Or in files, containing functions that take {lib}
#foo = callLibs ./foo.nix;
## In configs, they can be used under "lib.our"
deploy = import ./deploy.nix { inherit inputs lib; };
};
};
}