force reauth on tailscale key change
This commit is contained in:
parent
e73323eb26
commit
9830568981
1 changed files with 11 additions and 17 deletions
|
@ -1,13 +1,7 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux")
|
||||
tailscale
|
||||
;
|
||||
{ config, pkgs, inputs, ... }:
|
||||
let
|
||||
inherit (inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux")
|
||||
tailscale;
|
||||
in {
|
||||
environment.systemPackages = [ tailscale ];
|
||||
services.tailscale = {
|
||||
|
@ -39,7 +33,7 @@ in {
|
|||
exit 0
|
||||
fi
|
||||
|
||||
${tailscale}/bin/tailscale up -authkey `cat /run/secrets/tailscale-key-${config.networking.hostName}`
|
||||
${tailscale}/bin/tailscale up --force-reauth --authkey `cat /run/secrets/tailscale-key-${config.networking.hostName}`
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue