nixos/modules/system/default.nix

12 lines
316 B
Nix
Raw Normal View History

2023-07-22 00:01:56 +08:00
inputs:
{
options.nixos.system = let inherit (inputs.lib) mkOption types; in
{
hostname = mkOption { type = types.nonEmptyStr; };
};
config = let inherit (inputs.lib) mkMerge mkIf; inherit (inputs.localLib) mkConditional; in mkMerge
[
{ networking.hostName = inputs.config.nixos.system.hostname; }
];
}