clean up last age attempt

This commit is contained in:
2025-10-05 09:05:48 -05:00
parent 898c17e537
commit b145d407cc
4 changed files with 17 additions and 124 deletions

View File

@@ -1,23 +1,15 @@
{ pkgs, config, lib, ... }:
{
#imports = [ agenix.nixosModules.default ];
options = {
modules.system.tailscale.enable = lib.mkEnableOption "enables tailscale";
};
config = lib.mkIf config.modules.system.tailscale.enable {
age.secrets."tailscale_authkey" = {
file = ../../secrets/tailscale_authkey.txt.age;
owner = "blake";
group = "blake";
mode = "0400";
};
services.tailscale = {
enable = true;
};
useRoutingFeatures = "both";
authKeyFile = "/run/agenix/tailscale_authkey";
#authKeyFile = "/home/blake/.nix/.keyring/tailscale/tailscale_authfile";
};
}