about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authordevhell <devhell@mailfresser.de>2017-12-04 14:37:02 +0000
committerdevhell <devhell@mailfresser.de>2017-12-04 14:37:02 +0000
commit7d1291f4d78597f53856002870d6499317b5af1c (patch)
treebf94fea5358805ee04974ef0c738ecd937552c9d /machines
parent3b8b13cfb44e919e834b6b393fd66130053c0a16 (diff)
machines/titan: Make networking.* less eye-destroying
One of many attempt to follow in making the code more readable and DRY
if possible.
Diffstat (limited to 'machines')
-rw-r--r--machines/devhell/titan.nix10
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;