This commit is contained in:
Pedro Rey Anca 2025-10-16 22:09:07 +02:00
parent 873cc5d457
commit b53e790e83
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A

View file

@ -1,11 +1,13 @@
{
osConfig,
pkgs,
lib,
...
}: let
hasDE = osConfig.hm-pedro.de != "none";
in {
xdg.mimeApps.enable = hasDE;
xdg.mimeApps = lib.mkif (osConfig.hm-pedro.de != "none") {
enable = true;
xdg.mimeApps.defaultApplications =
{
"application/pdf" = ["okularApplication_pdf.desktop" "org.gnome.Evince.desktop"];
@ -19,6 +21,7 @@ in {
name = "video/${key}";
value = ["mpv.desktop"];
}) ["mp4" "x-matroska" "webm"]);
};
home.packages = with pkgs; ([
# CLI utils
@ -33,23 +36,22 @@ in {
todo # cli todo list
yazi # terminal file manager
yt-dlp
wtype # xdotool type for wayland
caligula # TUI for disk imaging
ffmpeg
killall
man-pages # extra man pages
openssl
pamixer # pulseaudio command line mixer
playerctl # controller for media players
wl-clipboard # clipboard utils for wayland (wl-copy, wl-paste)
unzip
wget
usbutils
gotify-cli
]
++ (
if hasDE
then [
lib.lists.optionals (osConfig.hm-pedro.de != "none") [
# CLI but only makes sense in DE
pamixer # pulseaudio command line mixer
playerctl # controller for media players
# GUI Utils
zenity # Create GTK dialog boxes from CLI
file-roller # Archive manager
@ -87,6 +89,11 @@ in {
openconnect
networkmanager-openconnect
]
else []
)
++ (
lib.lists.optionals (osConfig.hm-pedro.de == "hyprland") [
wl-clipboard # clipboard utils for wayland (wl-copy, wl-paste)
wtype # xdotool type for wayland
]
));
}