europa: restart tailscale every resume

This commit is contained in:
Aaron Bieber 2023-01-15 06:01:20 -07:00
parent f585ebf893
commit db7827cbd6
No known key found for this signature in database

View File

@ -195,6 +195,16 @@ in {
};
systemd.user.services = lib.listToAttrs (builtins.map jobToService jobs);
systemd.services."whytailscalewhy" = {
description = "Tailscale restart on resume";
wantedBy = [ "post-resume.target" ];
after = [ "post-resume.target" ];
script = ''
. /etc/profile;
${pkgs.systemd}/bin/systemctl restart tailscaled.service
'';
serviceConfig.Type = "oneshot";
};
virtualisation.docker.enable = true;
users.users.qbit.extraGroups = [ "dialout" "libvirtd" "docker" ];