summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-27 20:07:55 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-27 20:07:55 +0100
commitc7b5326399bb7d0aee494dc41622117ecfc2e3d1 (patch)
tree96c6086ddff837a85607d93b49a5112308da64ee /nixos
parent68153b894f7f227d4e7714c6d138454df521d31c (diff)
downloaduser-config-c7b5326399bb7d0aee494dc41622117ecfc2e3d1.tar.gz
user-config-c7b5326399bb7d0aee494dc41622117ecfc2e3d1.zip
tailscale on kusanagi
Diffstat (limited to 'nixos')
-rw-r--r--nixos/kusanagi.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix
index 4bd5b77..fe43be6 100644
--- a/nixos/kusanagi.nix
+++ b/nixos/kusanagi.nix
@@ -94,6 +94,13 @@ in
options = [ "bind" ];
};
+ fileSystems."/var/lib/tailscale" =
+ { device = "/persist/var/lib/tailscale";
+ fsType = "none";
+ depends = [ "/persist" "/mnt-root/persist" ];
+ options = [ "bind" ];
+ };
+
# ---- immutable user config for tmpfs root ----
users.mutableUsers = false;
@@ -136,6 +143,8 @@ in
virtualisation.docker.enable = true;
virtualisation.virtualbox.host.enable = true;
+ services.tailscale.enable = true;
+
# ----
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";