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;
|
|
};
|
|
}
|