diff options
author | devhell <devhell@mailfresser.de> | 2017-12-04 14:37:02 +0000 |
---|---|---|
committer | devhell <devhell@mailfresser.de> | 2017-12-04 14:37:02 +0000 |
commit | 7d1291f4d78597f53856002870d6499317b5af1c (patch) | |
tree | bf94fea5358805ee04974ef0c738ecd937552c9d | |
parent | 3b8b13cfb44e919e834b6b393fd66130053c0a16 (diff) |
machines/titan: Make networking.* less eye-destroying
One of many attempt to follow in making the code more readable and DRY if possible.
-rw-r--r-- | machines/devhell/titan.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/machines/devhell/titan.nix b/machines/devhell/titan.nix index 68099559..18af60f4 100644 --- a/machines/devhell/titan.nix +++ b/machines/devhell/titan.nix @@ -56,10 +56,12 @@ # XXX Kind of a hack to work around the issue of networkd not honoring networking.nameservers systemd.network.networks."99-main".dhcpConfig.UseDNS = false; - networking.hostName = "titan"; - networking.wireless.enable = true; - networking.useNetworkd= true; - networking.nameservers = [ "127.0.0.1" ]; + networking = { + hostName = "titan"; + wireless.enable = true; + useNetworkd= true; + nameservers = [ "127.0.0.1" ]; + }; powerManagement = { powertop.enable = true; |