From 24825b6afac2551c1303cd2f84276be47b845f31 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 24 Jan 2025 09:24:59 +0100 Subject: ... --- accounts/gkleen@sif/systemd.nix | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'accounts/gkleen@sif/systemd.nix') diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index 7e83662f..d3a1a4c7 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix @@ -207,10 +207,10 @@ in { RuntimeDirectory = "gtklock"; CacheDirectory = "gtklock"; ExecStartPre = [ - "${lib.getExe' pkgs.libsForQt5.qt5.qttools.bin "qdbus"} org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow.lockAllDatabases" - "${lib.getExe' config.systemd.package "systemctl"} --user stop gpg-agent.service" - "${lib.getExe pkgs.playerctl} -a pause" - (lib.getExe (pkgs.writeShellApplication { + "-${lib.getExe' pkgs.libsForQt5.qt5.qttools.bin "qdbus"} org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow.lockAllDatabases" + "-${lib.getExe' config.systemd.package "systemctl"} --user stop gpg-agent.service" + "-${lib.getExe pkgs.playerctl} -a pause" + "-${lib.getExe (pkgs.writeShellApplication { name = "generate-css"; runtimeInputs = with pkgs; [cfg.programs.wpaperd.package jq coreutils imagemagick findutils]; text = '' @@ -250,7 +250,7 @@ in { EOF done ''; - })) + })}" ]; NotifyAccess = "all"; ExecStart = ''${lib.getExe pkgs.gtklock} -s "''${RUNTIME_DIRECTORY}/style.css" -L ${pkgs.writeShellScript "after-lock" '' @@ -320,6 +320,7 @@ in { }; xembed-sni-proxy = { Unit = { + PartOf = lib.mkForce ["tray.target"]; BindsTo = ["xwayland-satellite.service"]; After = ["xwayland-satellite.service"]; }; @@ -329,6 +330,21 @@ in { After = ["graphical-session.target"]; }; }; + network-manager-applet = { + Unit = { + PartOf = lib.mkForce ["tray.target"]; + }; + }; + udiskie = { + Unit = { + PartOf = lib.mkForce ["tray.target"]; + }; + }; + blueman-applet = { + Unit = { + PartOf = lib.mkForce ["tray.target"]; + }; + }; } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { Unit = { Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; -- cgit v1.2.3