This is the result of ~100 commits to my NixOS config. Since I haven't always used `agenix-rekey`, this is another initial commit so that none of the secrets in my git history are leaked
18 lines
223 B
Nix
18 lines
223 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.elements;
|
|
in {
|
|
options = {
|
|
elements = {
|
|
hostname = mkOption {type = types.str;};
|
|
};
|
|
};
|
|
|
|
config = {
|
|
networking.hostName = cfg.hostname;
|
|
};
|
|
}
|