From 5652480f01c2f27d1881e6910919a1c7b9a8f862 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 24 Jun 2023 09:09:29 +0200 Subject: [PATCH] feat: use home-manager to manage desktop files --- nixos/cfg/home-manager.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/nixos/cfg/home-manager.nix b/nixos/cfg/home-manager.nix index d1e635a..f98f1aa 100644 --- a/nixos/cfg/home-manager.nix +++ b/nixos/cfg/home-manager.nix @@ -133,7 +133,7 @@ in while killall -r -0 ksshaskpass > /dev/null 2>&1 do sleep 0.1 - if [[ $(hyprctl activewindow | grep Ksshaskpas) == "" ]]; then + if [[ $(hyprctl activewindow | grep Ksshaskpass) == "" ]]; then killall -r ksshaskpass fi done @@ -143,6 +143,22 @@ in '') ]; + xdg.desktopEntries.gparted = { + name = "GParted"; + genericName = "Partition Editor"; + comment = "Create, reorganize, and delete partitions"; + exec = "Gparted"; + icon = "gparted"; + terminal = false; + type = "Application"; + categories = [ "GNOME" "System" "Filesystem" ]; + startupNotify = true; + settings = { + Keywords = "Partition"; + X-GNOME-FullName = "GParted Partition Editor"; + }; + }; + home.sessionVariables = { XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:\$XDG_DATA_DIRS"; SUDO_ASKPASS = "${pkgs.plasma5Packages.ksshaskpass}/bin/${pkgs.plasma5Packages.ksshaskpass.pname}";