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/default.nix | 1 + accounts/gkleen@sif/libvirt/default.nix | 1 + accounts/gkleen@sif/systemd.nix | 26 +++++++++++++++++++++----- 3 files changed, 23 insertions(+), 5 deletions(-) (limited to 'accounts') diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 7f4879f4..95fa8e48 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -315,6 +315,7 @@ in { device_config = [ { mount_path = "/run/etc-metadata"; ignore = true; } ]; + icon_names.media = ["drive-removable-media-symbolic"]; }; }; network-manager-applet.enable = true; diff --git a/accounts/gkleen@sif/libvirt/default.nix b/accounts/gkleen@sif/libvirt/default.nix index 70ac22b9..4e5a9b90 100644 --- a/accounts/gkleen@sif/libvirt/default.nix +++ b/accounts/gkleen@sif/libvirt/default.nix @@ -7,6 +7,7 @@ with flakeInputs.nixVirt.lib; config = { virtualisation.libvirt = { enable = true; + swtpm.enable = true; connections."qemu:///session" = { domains = [ { definition = domain.writeXML (updateManyAttrsByPath [ 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