2024-08-18 22:22:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-10-03 11:50:01 +00:00
|
|
|
# Configuration common to all Linux systems
|
|
|
|
flake = {
|
2023-10-07 12:06:28 +00:00
|
|
|
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"
|
|
|
|
|
2024-08-18 22:22:59 +00:00
|
|
|
deploy = import ./deploy.nix {inherit inputs lib;};
|
2023-10-07 12:06:28 +00:00
|
|
|
addLocalHostname = callLibs ./add-local-hostname.nix;
|
2023-10-07 14:45:42 +00:00
|
|
|
recursiveMerge = callLibs ./recursive-merge.nix;
|
2024-03-28 16:18:18 +00:00
|
|
|
mkEmailAddress = account: domain: account + "@" + domain;
|
2023-10-03 11:50:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|