Commit a6a2438d62ae

Vincent Demeester <vincent@sbr.pm>
2018-06-15 10:43:48
Add wireguard :)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent bbd9229
Changed files (3)
machine/wakasu.nix
@@ -10,6 +10,7 @@
     ../profiles/dev.nix
     ../profiles/dockerization.nix
     ../profiles/virtualization.nix
+    ../profiles/wireguard.nix
     ../location/docker.nix
     ../location/home.nix
     ../hardware/thinkpad-t460s.nix
profiles/avahi.nix
@@ -1,16 +1,16 @@
-{ configs, pkgs, ...}:
+{ configs, pkgs, ... }:
 
 {
-	services = {
-		avahi = {
-			enable = true;
-			ipv4 = true;
-			ipv6 = true;
-			nssmdns = true;
-			publish = {
-				enable = true;
-				userServices = true;
-			};
-		};
-	};
+  services = {
+    avahi = {
+      enable = true;
+      ipv4 = true;
+      ipv6 = true;
+      nssmdns = true;
+      publish = {
+        enable = true;
+        userServices = true;
+      };
+    };
+  };
 }
profiles/wireguard.nix
@@ -0,0 +1,6 @@
+{ config, pkgs, ... }:
+
+{
+  boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];
+  environment.systemPackages = [ pkgs.wireguard ];
+}