dotfiles/modules/common/elements.nix
Christopher Mühl 53b8448159 Make common modules compatible for nix-darwin
TODO: Determine why nushell config is populated twice
2025-08-06 23:14:38 +02:00

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