From f124e0550dbe4a0e4646675942d94180d847bff9 Mon Sep 17 00:00:00 2001 From: Julia Lange Date: Thu, 10 Jul 2025 12:02:31 -0700 Subject: [PATCH] Tailscale, Move to service, enable on Juri & Onizuka --- hosts/juri/host.nix | 1 + hosts/onizuka/host.nix | 1 + .../tailscale/app.nix => services/tailscale/service.nix} | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) rename nixosModules/{apps/tailscale/app.nix => services/tailscale/service.nix} (60%) diff --git a/hosts/juri/host.nix b/hosts/juri/host.nix index 4f30a2f..192639b 100644 --- a/hosts/juri/host.nix +++ b/hosts/juri/host.nix @@ -71,5 +71,6 @@ in { shell.enabledShells = [ "fish" ]; shell.defaultShell = "fish"; + tailscale.enable = true; sshd.enable = true; } diff --git a/hosts/onizuka/host.nix b/hosts/onizuka/host.nix index c48f020..d2dbc49 100644 --- a/hosts/onizuka/host.nix +++ b/hosts/onizuka/host.nix @@ -13,6 +13,7 @@ system.users.bigWheels = [ "pan" ]; sshd.enable = true; + tailscale.enable = true; tuigreet.enable = true; niri.enable = true; diff --git a/nixosModules/apps/tailscale/app.nix b/nixosModules/services/tailscale/service.nix similarity index 60% rename from nixosModules/apps/tailscale/app.nix rename to nixosModules/services/tailscale/service.nix index 37dcc9f..cd94ad8 100644 --- a/nixosModules/apps/tailscale/app.nix +++ b/nixosModules/services/tailscale/service.nix @@ -1,8 +1,8 @@ -{ config, lib, ... }: +{ config, pkgs, lib, ... }: { options.tailscale = { - enable = lib.mkEnableOption "Enables tailscale"; + enable = lib.mkEnableOption "enables tailscale"; }; config = lib.mkIf config.tailscale.enable {