2024-03-04 00:34:39 +03:00
|
|
|
{ pkgs, ... }: {
|
2024-03-29 08:22:03 +03:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2024-03-04 00:34:39 +03:00
|
|
|
hardware.opengl = let
|
|
|
|
packages = with pkgs; [
|
|
|
|
dxvk
|
|
|
|
gamescope
|
|
|
|
mangohud
|
|
|
|
vkd3d
|
|
|
|
];
|
|
|
|
in {
|
|
|
|
extraPackages = packages;
|
|
|
|
extraPackages32 = packages;
|
|
|
|
};
|
|
|
|
|
2024-03-21 22:02:12 +03:00
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
2024-03-29 08:47:30 +03:00
|
|
|
adwsteamgtk gradience
|
2024-03-23 14:09:13 +03:00
|
|
|
android-studio jetbrains.idea-community
|
2024-03-23 14:19:36 +03:00
|
|
|
appimage-run
|
2024-03-21 22:02:12 +03:00
|
|
|
blender-hip
|
2024-03-23 14:09:13 +03:00
|
|
|
bottles dxvk gamescope mangohud vkd3d wine64
|
2024-03-23 14:19:36 +03:00
|
|
|
calibre
|
2024-04-08 04:27:04 +03:00
|
|
|
evince loupe gnome.nautilus gnome.gnome-calculator
|
2024-03-21 22:02:12 +03:00
|
|
|
gimp
|
2024-04-08 04:27:04 +03:00
|
|
|
gnome.adwaita-icon-theme
|
2024-03-23 14:19:36 +03:00
|
|
|
jellyfin-media-player
|
|
|
|
mpv
|
2024-03-21 22:02:12 +03:00
|
|
|
obs-studio
|
|
|
|
onlyoffice-bin
|
2024-03-23 14:19:36 +03:00
|
|
|
scanmem
|
|
|
|
steam-run
|
2024-03-21 22:02:12 +03:00
|
|
|
tor-browser
|
|
|
|
];
|
|
|
|
|
|
|
|
variables = {
|
|
|
|
# MangoHud.
|
|
|
|
MANGOHUD = "1";
|
2024-03-21 22:40:12 +03:00
|
|
|
MANGOHUD_CONFIGFILE = ./mangohud/MangoHud.conf;
|
|
|
|
MANGOHUD_PRESETSFILE = ./mangohud/MangoPresets.conf;
|
2024-03-21 22:02:12 +03:00
|
|
|
|
|
|
|
# Proton.
|
|
|
|
WINEFSYNC = "1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-03-04 00:34:39 +03:00
|
|
|
# Special packages.
|
|
|
|
programs.steam.enable = true;
|
|
|
|
}
|