mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 18:08:45 +08:00
12 lines
316 B
Nix
12 lines
316 B
Nix
|
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; }
|
||
|
];
|
||
|
}
|