App : Add Evince & Loupe.

This commit is contained in:
Dmitry Voronin 2024-03-29 08:22:03 +03:00
parent bd6ee35e49
commit d94e0ae6e1
3 changed files with 13 additions and 24 deletions

View file

@ -6,19 +6,6 @@
./desktop/Sound.nix
];
# Default apps.
xdg.mime.defaultApplications = {
# Use `file -i file.txt` to find file mime type.
# Use `xdg-mime query default "text/plain"` to find default app.
"application/pdf" = "org.gnome.Evince.desktop";
"application/vnd.openxmlformats-officedocument.*" = "onlyoffice-desktopeditors.desktop";
"audio/*" = "mpv.desktop";
"image/*" = "org.gnome.Loupe.desktop";
"text/*" = "nvim.desktop";
"video/*" = "mpv.desktop";
};
# Extra apps.
environment.systemPackages = with pkgs; [
adwsteamgtk
gnome.gnome-remote-desktop
@ -28,7 +15,6 @@
wl-clipboard
];
# Disable some apps.
services.gnome.gnome-keyring.enable = lib.mkForce false;
environment.gnome.excludePackages = with pkgs.gnome; [
# baobab # Disk usage analyzer.

View file

@ -9,16 +9,6 @@
./desktop/Sound.nix
];
xdg.mime.defaultApplications = {
# Use `file -i file.txt` to find file mime type.
# Use `xdg-mime query default "text/plain"` to find default app.
"application/pdf" = "org.gnome.Evince.desktop"; # TODO: Different apps?
"application/vnd.openxmlformats-officedocument.*" = "onlyoffice-desktopeditors.desktop";
"audio/*" = "mpv.desktop";
"image/*" = "org.gnome.Loupe.desktop";
"text/*" = "nvim.desktop";
"video/*" = "mpv.desktop";
};
services.gnome.gnome-keyring.enable = lib.mkForce false;
environment.systemPackages = with pkgs; [

View file

@ -1,4 +1,15 @@
{ pkgs, ... }: {
xdg.mime.defaultApplications = {
# Use `file -i file.txt` to find file mime type.
# Use `xdg-mime query default "text/plain"` to find default app.
"application/pdf" = "org.gnome.Evince.desktop";
"application/vnd.openxmlformats-officedocument.*" = "onlyoffice-desktopeditors.desktop";
"audio/*" = "mpv.desktop";
"image/*" = "org.gnome.Loupe.desktop";
"text/*" = "nvim.desktop";
"video/*" = "mpv.desktop";
};
hardware.opengl = let
packages = with pkgs; [
dxvk
@ -18,9 +29,11 @@
blender-hip
bottles dxvk gamescope mangohud vkd3d wine64
calibre
evince
gimp
godot_4 gdtoolkit
jellyfin-media-player
loupe
mpv
obs-studio
onlyoffice-bin