add ktailctl and reconfigure tailscale to have sensible defaults

This commit is contained in:
Seaswimmer 2024-11-18 20:11:33 -05:00
parent 855b38eef5
commit 5a8f369e02
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 18 additions and 1 deletions

View file

@ -6,6 +6,7 @@ let
onlyoffice-bin onlyoffice-bin
krita krita
ytmdesktop ytmdesktop
ktailctl
wl-clipboard wl-clipboard
# we install xdg-desktop-portal-gtx so theming works from kde # we install xdg-desktop-portal-gtx so theming works from kde
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
@ -19,4 +20,20 @@ in {
corefonts corefonts
(nerdfonts.override { fonts = [ "FiraCode" ]; }) (nerdfonts.override { fonts = [ "FiraCode" ]; })
]; ];
# Systemd user services
# See https://wiki.nixos.org/wiki/Systemd/User_Services for more information
systemd.user.services = {
ktailctl = {
enable = true;
after = [ "network.target" ];
wantedBy = [ "default.target" ];
description =
"A GUI to monitor and manage Tailscale on your Linux desktop, built using KDE Frameworks and Kirigami2.";
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.ktailctl}/bin/ktailctl";
};
};
};
} }

View file

@ -5,6 +5,6 @@
# with the contents of your Tailscale auth key. # with the contents of your Tailscale auth key.
# Make sure your permissions are set correctly, e.g. 0600. # Make sure your permissions are set correctly, e.g. 0600.
authKeyFile = "/run/secrets/tailscale"; authKeyFile = "/run/secrets/tailscale";
extraUpFlags = [ "--ssh" ]; extraUpFlags = [ "--ssh" "--accept-routes" "--accept-dns" "--operator=cswimr" ];
}; };
} }