chore: new tailscale system tray, fix warnings
Some checks failed
/ test (push) Failing after 3m12s

This commit is contained in:
nydragon 2025-03-15 19:15:46 +01:00
parent 77bf1ebd43
commit f4dd2fb01a
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
5 changed files with 31 additions and 22 deletions

View file

@ -12,23 +12,18 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.vscode = { programs.vscode = {
package = pkgs.vscode; package = pkgs.vscode;
enableUpdateCheck = false; default = {
extensions = with pkgs.vscode-extensions; [ enableUpdateCheck = false;
rust-lang.rust-analyzer extensions = with pkgs.vscode-extensions; [
ms-vscode-remote.remote-ssh rust-lang.rust-analyzer
ms-vscode-remote.remote-ssh-edit ms-vscode-remote.remote-ssh
tamasfe.even-better-toml ms-vscode-remote.remote-ssh-edit
]; tamasfe.even-better-toml
userSettings = { ];
editor.formatOnSave = true; userSettings = {
terminal.integrated.inheritEnv = false; editor.formatOnSave = true;
git.autofetch = true; terminal.integrated.inheritEnv = false;
remote.SSH = { git.autofetch = true;
connectTimeout = 60;
useLocalServer = true;
remotePlatform = {
"192.168.122.152" = "linux";
};
}; };
}; };
}; };

View file

@ -16,7 +16,7 @@
editor = "${pkgs.neovim}/bin/nvim"; editor = "${pkgs.neovim}/bin/nvim";
}; };
init = { init = {
defaultBranch = "master"; defaultBranch = "main";
}; };
merge = { merge = {
conflictstyle = "diff3"; conflictstyle = "diff3";

View file

@ -33,7 +33,6 @@ in
Type = "simple"; Type = "simple";
ExecStart = "/bin/sh -lc ${cfg.package}/bin/nysh"; ExecStart = "/bin/sh -lc ${cfg.package}/bin/nysh";
Restart = "on-failure"; Restart = "on-failure";
NoNewPrivileges = true; NoNewPrivileges = true;
}; };
}; };

View file

@ -18,6 +18,7 @@ let
enum enum
bool bool
; ;
inherit (lib.my) getExe;
cfg = config.modules.services.tailscale; cfg = config.modules.services.tailscale;
in in
{ {
@ -86,14 +87,29 @@ in
description = "tailscale system tray"; description = "tailscale system tray";
wantedBy = [ "graphical-session.target" ]; wantedBy = [ "graphical-session.target" ];
after = [ "graphical-session.target" ]; after = [ "graphical-session.target" ];
path = [ pkgs.polkit ]; path = with pkgs; [
polkit
tailscale
];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
ExecStart = "/bin/sh -lc ${pkgs.tailscale-systray}/bin/tailscale-systray"; ExecStart = getExe pkgs.tail-tray;
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 1; RestartSec = 1;
TimeoutStopSec = 10; TimeoutStopSec = 10;
IPAddressDeny = "any"; IPAddressDeny = "any";
NoNewPrivileges = true;
ProtectClock = true;
ProtectKernelTunables = true;
ProtectKernelModules = true;
ProtectKernelLogs = true;
SystemCallFilter = "~@clock @cpu-emulation @debug @obsolete @module @mount @raw-io @reboot @swap";
# ProtectControlGroups = true;
#RestrictNamespaces = true;
LockPersonality = true;
MemoryDenyWriteExecute = true;
RestrictRealtime = true;
RestrictSUIDSGID = true;
}; };
}; };
}; };

View file

@ -26,7 +26,6 @@ in
] ]
++ (with pkgs; [ ++ (with pkgs; [
keepassxc keepassxc
digikam
fragments fragments
element-desktop element-desktop
libreoffice libreoffice