Commit d6abe8c165b6

Vincent Demeester <vincent@sbr.pm>
2017-08-16 13:43:45
Update shikoku to be only a desktop (and not a laptop)
Also, use `systemd-networkd` instead of network-manager. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 66559d7
Changed files (1)
machine/shikoku.nix
@@ -7,7 +7,8 @@
 			../configuration/custom-packages.nix
 			../configuration/common.nix
 			../profiles/ssh.nix
-			../profiles/laptop.nix
+			../profiles/desktop.nix
+			../profiles/audio.nix
 			../profiles/dev.nix
 			../profiles/virtualization.nix
 			../profiles/dockerization.nix
@@ -35,6 +36,30 @@ xrandr --output HDMI-0 --off --output DP-4 --auto --dpi 96 &
 		};
 	};
 
+systemd.network = {
+  enable = true;
+  netdevs.br0.netdevConfig = {
+    Name = "br0";
+    Kind = "bridge";
+  };
+  networks = {
+    br0.extraConfig = ''
+      [Match]
+      Name = br0
+
+      [Network]
+      DHCP = both
+    '';
+   enp0s31f6.extraConfig = ''
+     [Match]
+     Name=enp0s31f6
+
+     [Network]
+     Bridge=br0
+   '';
+  };
+};
+
 	hardware.bluetooth.enable = true;
 
 	environment.etc."synergy-server.conf" = { text = ''