europa: restart tailscale every resume
This commit is contained in:
parent
f585ebf893
commit
db7827cbd6
@ -195,6 +195,16 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services = lib.listToAttrs (builtins.map jobToService jobs);
|
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;
|
virtualisation.docker.enable = true;
|
||||||
users.users.qbit.extraGroups = [ "dialout" "libvirtd" "docker" ];
|
users.users.qbit.extraGroups = [ "dialout" "libvirtd" "docker" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user