2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 16:53:21 +00:00
nixpkgs/nixos/modules
David Anderson c9a1647ade nixos/tailscale: use systemctl restart during activation.
This avoids the scenario where you activate a new config over Tailscale,
and a long delay between the "stop services" and "start services" phases
of the activation script lead to your terminal freezing for tens of
seconds, until tailscaled finally gets started again and the session
recovers.

Per the documentation of stopIfChanged, this is only safe to do if the
service definition is robust to stopping the old process using the new
service definition. As the maintainer of the upstream systemd unit, I
can confirm that Tailscale is robust to this scenario: it has to be
in order to work right on several other distros that just do
unpack-then-restart, rather than the more complex stop-unpack-start
dance.

Signed-off-by: David Anderson <dave@natulte.net>
2022-04-24 23:31:35 -07:00
..
config Merge pull request from raboof/document-how-to-disable-nss 2022-04-16 22:55:40 +02:00
hardware Merge pull request from helsinki-systems/feat/systemd-stage-1-amdgpu-pro 2022-04-20 11:36:53 +02:00
i18n/input-method nixos/fcitx5: remove systemd service via XDG autostart files 2022-04-18 01:14:00 +08:00
installer Merge pull request from emccorson/fix/add-copy-system-config 2022-04-24 00:01:00 +02:00
misc Merge staging-next into staging 2022-04-08 18:11:40 +00:00
profiles nixos/nix-daemon: use structural settings 2022-01-26 21:04:50 -05:00
programs Merge pull request from pacien/ssmtp-removal 2022-04-17 21:09:14 +02:00
security Merge pull request from lukegb/pam-ussh 2022-04-11 01:25:45 +01:00
services nixos/tailscale: use systemctl restart during activation. 2022-04-24 23:31:35 -07:00
system Merge pull request from helsinki-systems/feat/systemd-stage-1-luks 2022-04-22 12:37:25 -07:00
tasks Merge pull request from helsinki-systems/feat/systemd-stage-1-hostid 2022-04-18 18:31:18 +02:00
testing nixos/tests: also set TimeoutStart in systemd.user.extraConfig 2022-01-21 04:18:05 +01:00
virtualisation Merge pull request from DeterminateSystems/openstack-zfs-cleanup 2022-04-16 19:44:53 -04:00
module-list.nix Merge pull request from wentasah/usbrelay 2022-04-25 02:23:19 +02:00
rename.nix nixos/ssmtp: drop module 2022-04-17 00:44:50 +02:00