18 lines
440 B
Nix
18 lines
440 B
Nix
{ ... }: {
|
|
flake.nixosModules.koonFeatureTailscale = { pkgs, ... }: {
|
|
services.tailscale.enable = true;
|
|
|
|
systemd.services.tailscale-restart = {
|
|
description = "Restart Tailscale after waking up";
|
|
after = [ "suspend.target" ];
|
|
wantedBy = [ "suspend.target" ];
|
|
|
|
serviceConfig = {
|
|
Type = "simple";
|
|
ExecStart = "${pkgs.systemd}/bin/systemctl restart tailscaled.service";
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|