mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
17 lines
314 B
Nix
17 lines
314 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.custom.networking.hostName = lib.mkOption {
|
|
type = lib.types.nonEmptyStr;
|
|
default = config.networking.hostName;
|
|
readOnly = true;
|
|
};
|
|
|
|
config = {
|
|
networking = {
|
|
useNetworkd = true;
|
|
useDHCP = false;
|
|
};
|
|
|
|
services.resolved.enable = true;
|
|
};
|
|
}
|