os/lib/default.nix
teutat3s 0212b85efc
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
style: run treefmt, remove unused recursive-merge
2024-01-06 17:30:35 +01:00

22 lines
512 B
Nix

{
lib,
inputs,
...
}: {
# Configuration common to all Linux systems
flake = {
lib = let
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;};
addLocalHostname = callLibs ./add-local-hostname.nix;
};
};
}