Commit 8e916e0b8da3

Vincent Demeester <vincent@sbr.pm>
2019-07-03 13:24:14
machine/hokkaio: is now a server
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent c8f79d9
Changed files (1)
machine/hokkaido.nix
@@ -9,28 +9,22 @@ with import ../assets/machines.nix; {
       "net.bridge.bridge-nf-call-ip6tables" = 0;
     };
   };
-  hardware.u2f.enable = true;
   profiles = {
+    avahi.enable = true;
     dev.enable = true;
-    laptop.enable = true;
-    desktop.autoLogin = true;
+    ssh.enable = true;
     syncthing.enable = true;
     nix-config.buildCores = 2;
-    yubikey.enable = true;
-    virtualization.enable = true;
-  };
-  programs = {
-    podman.enable = true;
+    virtualization = {
+      enable = true;
+      nested = true;
+      listenTCP = true;
+    };
   };
   services = {
     logind = {
-      lidSwitch = "suspend";
-      lidSwitchExternalPower = "suspend";
-      lidSwitchDocked = "ignore";
+      lidSwitch = "ignore";
     };
-    logind.extraConfig = ''
-      HandlePowerKey=hibernate
-    '';
     syncthing-edge.guiAddress = "${wireguard.ips.hokkaido}:8384";
     wireguard = {
       enable = true;
@@ -40,8 +34,4 @@ with import ../assets/machines.nix; {
       endpointPublicKey = wireguard.kerkouane.publicKey;
     };
   };
-  environment.systemPackages = with pkgs; [
-    nfs-utils
-    sshfs
-  ];
 }