hardware: add T480
[julm/julm-nix.git] / hosts / oignon / networking.nix
index 7df41545c962dcc370d6ccae2f61bb980603a6c9..cc308e31806ae0485565e73da1f19ff8f1ae74e1 100644 (file)
@@ -3,6 +3,10 @@
   imports = [
     ../../nixos/profiles/dnscrypt-proxy2.nix
     ../../nixos/profiles/wireguard/wg-intra.nix
+    ../../nixos/profiles/networking/ssh.nix
+    ../../nixos/profiles/networking/wifi.nix
+    ../../nixos/profiles/openvpn/calyx.nix
+    ./wireguard.nix
     networking/nftables.nix
   ];
   install.substituteOnDestination = false;
     }
   '';
 
+  networking.hosts = {
+    #"80.67.180.129" = ["salons.sourcephile.fr"];
+  };
+
   networking.interfaces = { };
 
   networking.networkmanager = {
     '';
   };
 
-  networking.wireguard.wg-intra.peers = {
-    mermet.enable = true;
-    losurdo.enable = true;
-    patate.enable = true;
-    aubergine.enable = true;
-  };
-
-  services.openssh.listenAddresses = [
-  ];
-
   environment.systemPackages = [
     pkgs.iw
     pkgs.modem-manager-gui
   ];
+
+  systemd.services.sshd.serviceConfig.LoadCredentialEncrypted = [
+    "host.key:${ssh/host.key.cred}"
+  ];
 }