Commit 931d30507e78

Vincent Demeester <vincent@sbr.pm>
2018-12-19 13:28:00
machines: add kobe back :)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 2ad1f78
Changed files (2)
machine
modules
profiles
machine/kobe.nix
@@ -0,0 +1,33 @@
+{ config, pkgs, ... }:
+
+with import ../assets/machines.nix; {
+  time.timeZone = "Europe/Paris";
+  fileSystems."/mnt/synodine" = {
+    device = "192.168.12.19:/";
+    fsType = "nfs";
+    options = ["x-systemd.automount" "noauto"];
+  };
+  boot = {
+    cleanTmpDir = true;
+  };
+  profiles = {
+    avahi.enable = true;
+    git.enable = true;
+    ssh.enable = true;
+  };
+  networking.firewall.allowPing = true;
+  /*
+  services = {
+    wireguard = {
+      enable = true;
+      ips = [ "${wireguard.ips.massimo}/24" ];
+      endpoint = wg.endpointIP;
+      endpointPort = wg.listenPort;
+      endpointPublicKey = wireguard.kerkouane.publicKey;
+    };
+  };
+  */
+  users.users.root.openssh.authorizedKeys.keys = [
+    "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGR4dqXwHwPpYgyk6yl9+9LRL3qrBZp3ZWdyKaTiXp0p vincent@shikoku"
+  ];
+}
modules/profiles/users.nix
@@ -34,7 +34,7 @@ in
           shell = if config.programs.fish.enable then pkgs.fish else pkgs.bash;
           initialPassword = "changeMe";
           openssh.authorizedKeys.keys =
-            with import ../../assets/machines.nix; [ ssh.honshu.key ssh.kerkouane.key ssh.hokkaido.key ssh.california.key ssh.shikoku.key ssh.massimo.key ssh.carthage.key ssh.wakasu.key ssh.iphone.key ];
+            with import ../../assets/machines.nix; [ ssh.honshu.key ssh.kerkouane.key ssh.hokkaido.key ssh.california.key ssh.shikoku.key ssh.massimo.key ssh.carthage.key ssh.wakasu.key ssh.iphone.key ssh.kobe.key ];
             subUidRanges = [{ startUid = 100000; count = 65536; }];
             subGidRanges = [{ startGid = 100000; count = 65536; }];
         };