mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-26 18:58:28 +02:00
refactor: Use hyphen(`-`) for variable names & folder names(except Python), replace all unserscore(`_`) with hyphen(`-`).
20 lines
313 B
Nix
20 lines
313 B
Nix
{
|
|
pkgs,
|
|
myvars,
|
|
mylib,
|
|
...
|
|
}: let
|
|
hostName = "k3s-prod-1-master-2"; # define your hostname.
|
|
k8sLib = import ../lib.nix;
|
|
coreModule = k8sLib.gencoreModule {
|
|
inherit pkgs hostName;
|
|
inherit (myvars) networking;
|
|
};
|
|
in {
|
|
imports =
|
|
(mylib.scanPaths ./.)
|
|
++ [
|
|
coreModule
|
|
];
|
|
}
|