Refactor
This commit is contained in:
parent
873cc5d457
commit
b53e790e83
1 changed files with 29 additions and 22 deletions
|
@ -1,24 +1,27 @@
|
||||||
{
|
{
|
||||||
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") {
|
||||||
xdg.mimeApps.defaultApplications =
|
enable = true;
|
||||||
{
|
xdg.mimeApps.defaultApplications =
|
||||||
"application/pdf" = ["okularApplication_pdf.desktop" "org.gnome.Evince.desktop"];
|
{
|
||||||
"text/plain" = ["org.gnome.TextEditor.desktop"];
|
"application/pdf" = ["okularApplication_pdf.desktop" "org.gnome.Evince.desktop"];
|
||||||
}
|
"text/plain" = ["org.gnome.TextEditor.desktop"];
|
||||||
// builtins.listToAttrs (map (key: {
|
}
|
||||||
name = "image/${key}";
|
// builtins.listToAttrs (map (key: {
|
||||||
value = ["vimiv.desktop"];
|
name = "image/${key}";
|
||||||
}) ["png" "jpeg" "webp" "bmp" "gif"])
|
value = ["vimiv.desktop"];
|
||||||
// builtins.listToAttrs (map (key: {
|
}) ["png" "jpeg" "webp" "bmp" "gif"])
|
||||||
name = "video/${key}";
|
// builtins.listToAttrs (map (key: {
|
||||||
value = ["mpv.desktop"];
|
name = "video/${key}";
|
||||||
}) ["mp4" "x-matroska" "webm"]);
|
value = ["mpv.desktop"];
|
||||||
|
}) ["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
|
||||||
|
]
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue