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