nixos-configs/devices/wim/home/packages.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

{pkgs, ...}: {
2023-11-22 15:33:16 -05:00
home.packages =
(with pkgs.python311Packages; [
python
pyclip # For Waydroid?
2023-11-22 15:33:16 -05:00
])
++ (with pkgs; [
# Misc CLI
acpi
2023-11-22 15:33:16 -05:00
(writeShellScriptBin "Gparted" ''
(
sleep 1.5
while killall -r -0 ksshaskpass > /dev/null 2>&1
do
sleep 0.1
if [[ $(hyprctl activewindow | grep Ksshaskpass) == "" ]]; then
killall -r ksshaskpass
fi
done
) &
2024-05-05 23:07:06 -04:00
exec env SUDO_ASKPASS=${plasma5Packages.ksshaskpass}/bin/${plasma5Packages.ksshaskpass.pname} sudo -k -EA "${gparted}/bin/${gparted.pname}" "$@"
2023-11-22 15:33:16 -05:00
'')
]);
xdg.desktopEntries.gparted = {
name = "GParted";
genericName = "Partition Editor";
comment = "Create, reorganize, and delete partitions";
exec = "Gparted";
icon = "gparted";
terminal = false;
type = "Application";
2023-11-22 15:33:16 -05:00
categories = ["GNOME" "System" "Filesystem"];
startupNotify = true;
settings = {
Keywords = "Partition";
X-GNOME-FullName = "GParted Partition Editor";
};
};
2023-06-26 17:29:17 -04:00
}