2024-01-06 16:30:35 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-01-06 09:46:10 +00:00
|
|
|
# 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"
|
|
|
|
|
2024-01-06 16:30:35 +00:00
|
|
|
deploy = import ./deploy.nix {inherit inputs lib;};
|
2024-01-06 09:46:10 +00:00
|
|
|
addLocalHostname = callLibs ./add-local-hostname.nix;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|