summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/systemd.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-01-24 09:24:59 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-01-24 09:24:59 +0100
commit24825b6afac2551c1303cd2f84276be47b845f31 (patch)
tree425ff5c6939690d30d088be18365cc22f9095c50 /accounts/gkleen@sif/systemd.nix
parent08414045a56517d95e94f55c406ec8940336c6c7 (diff)
downloadnixos-24825b6afac2551c1303cd2f84276be47b845f31.tar
nixos-24825b6afac2551c1303cd2f84276be47b845f31.tar.gz
nixos-24825b6afac2551c1303cd2f84276be47b845f31.tar.bz2
nixos-24825b6afac2551c1303cd2f84276be47b845f31.tar.xz
nixos-24825b6afac2551c1303cd2f84276be47b845f31.zip
...
Diffstat (limited to 'accounts/gkleen@sif/systemd.nix')
-rw-r--r--accounts/gkleen@sif/systemd.nix26
1 files changed, 21 insertions, 5 deletions
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 {
207 RuntimeDirectory = "gtklock"; 207 RuntimeDirectory = "gtklock";
208 CacheDirectory = "gtklock"; 208 CacheDirectory = "gtklock";
209 ExecStartPre = [ 209 ExecStartPre = [
210 "${lib.getExe' pkgs.libsForQt5.qt5.qttools.bin "qdbus"} org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow.lockAllDatabases" 210 "-${lib.getExe' pkgs.libsForQt5.qt5.qttools.bin "qdbus"} org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow.lockAllDatabases"
211 "${lib.getExe' config.systemd.package "systemctl"} --user stop gpg-agent.service" 211 "-${lib.getExe' config.systemd.package "systemctl"} --user stop gpg-agent.service"
212 "${lib.getExe pkgs.playerctl} -a pause" 212 "-${lib.getExe pkgs.playerctl} -a pause"
213 (lib.getExe (pkgs.writeShellApplication { 213 "-${lib.getExe (pkgs.writeShellApplication {
214 name = "generate-css"; 214 name = "generate-css";
215 runtimeInputs = with pkgs; [cfg.programs.wpaperd.package jq coreutils imagemagick findutils]; 215 runtimeInputs = with pkgs; [cfg.programs.wpaperd.package jq coreutils imagemagick findutils];
216 text = '' 216 text = ''
@@ -250,7 +250,7 @@ in {
250 EOF 250 EOF
251 done 251 done
252 ''; 252 '';
253 })) 253 })}"
254 ]; 254 ];
255 NotifyAccess = "all"; 255 NotifyAccess = "all";
256 ExecStart = ''${lib.getExe pkgs.gtklock} -s "''${RUNTIME_DIRECTORY}/style.css" -L ${pkgs.writeShellScript "after-lock" '' 256 ExecStart = ''${lib.getExe pkgs.gtklock} -s "''${RUNTIME_DIRECTORY}/style.css" -L ${pkgs.writeShellScript "after-lock" ''
@@ -320,6 +320,7 @@ in {
320 }; 320 };
321 xembed-sni-proxy = { 321 xembed-sni-proxy = {
322 Unit = { 322 Unit = {
323 PartOf = lib.mkForce ["tray.target"];
323 BindsTo = ["xwayland-satellite.service"]; 324 BindsTo = ["xwayland-satellite.service"];
324 After = ["xwayland-satellite.service"]; 325 After = ["xwayland-satellite.service"];
325 }; 326 };
@@ -329,6 +330,21 @@ in {
329 After = ["graphical-session.target"]; 330 After = ["graphical-session.target"];
330 }; 331 };
331 }; 332 };
333 network-manager-applet = {
334 Unit = {
335 PartOf = lib.mkForce ["tray.target"];
336 };
337 };
338 udiskie = {
339 Unit = {
340 PartOf = lib.mkForce ["tray.target"];
341 };
342 };
343 blueman-applet = {
344 Unit = {
345 PartOf = lib.mkForce ["tray.target"];
346 };
347 };
332 } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { 348 } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" {
333 Unit = { 349 Unit = {
334 Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; 350 Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"];