about summary refs log tree commit diff
path: root/ops/nixos/nugget
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-02-11T00·55+0000
committerVincent Ambo <tazjin@google.com>2020-02-11T00·55+0000
commita8792f8372b7bad98af04f2cd1fa204429ad8bd7 (patch)
tree2b79f7bf6cf5999aa4194bc1968a3fc439215e43 /ops/nixos/nugget
parentb586a04a0a997864d03d48ee9c4f65214bff852d (diff)
feat(ops/nixos/nugget): Enable tailscale-relay r/533
Diffstat (limited to 'ops/nixos/nugget')
-rw-r--r--ops/nixos/nugget/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/ops/nixos/nugget/default.nix b/ops/nixos/nugget/default.nix
index cd0f08e6ea27..c8ab867fd899 100644
--- a/ops/nixos/nugget/default.nix
+++ b/ops/nixos/nugget/default.nix
@@ -11,6 +11,10 @@ config: let
 
   lieer = (pkgs.third_party.lieer {});
 in pkgs.lib.fix(self: {
+  imports = [
+    ../modules/tailscale.nix
+  ];
+
   hardware = {
     pulseaudio.enable = true;
     cpu.intel.updateMicrocode = true;
@@ -237,6 +241,14 @@ in pkgs.lib.fix(self: {
       };
     };
 
+    # Use Tailscale \o/
+    services.tailscale = {
+      enable = true;
+      relayConf = "/etc/tailscale/relay.conf";
+      aclFile = null; # allow all traffic for testing
+      package = pkgs.third_party.tailscale;
+    };
+
     # ... and other nonsense.
     system.stateVersion = "19.09";
 })