mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 16:40:12 +00:00
Merge pull request #167 from wizeman/domain
Set the domain name of the machine
This commit is contained in:
commit
3bb97667b8
|
@ -424,13 +424,17 @@ in
|
|||
// mapAttrs createBridgeDevice cfg.bridges
|
||||
// { "network-setup" = networkSetup; };
|
||||
|
||||
# Set the host name in the activation script. Don't clear it if
|
||||
# it's not configured in the NixOS configuration, since it may
|
||||
# have been set by dhclient in the meantime.
|
||||
# Set the host and domain names in the activation script. Don't
|
||||
# clear it if it's not configured in the NixOS configuration,
|
||||
# since it may have been set by dhclient in the meantime.
|
||||
system.activationScripts.hostname =
|
||||
optionalString (config.networking.hostName != "") ''
|
||||
hostname "${config.networking.hostName}"
|
||||
'';
|
||||
system.activationScripts.domain =
|
||||
optionalString (config.networking.domain != "") ''
|
||||
domainname "${config.networking.domain}"
|
||||
'';
|
||||
|
||||
services.udev.extraRules =
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue