From 7d1291f4d78597f53856002870d6499317b5af1c Mon Sep 17 00:00:00 2001 From: devhell Date: Mon, 4 Dec 2017 14:37:02 +0000 Subject: machines/titan: Make networking.* less eye-destroying One of many attempt to follow in making the code more readable and DRY if possible. --- machines/devhell/titan.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'machines') 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; -- cgit 1.4.1