nix/module/desktop/App.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

{ 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";
};
hardware.opengl = let
packages = with pkgs; [
dxvk
gamescope
mangohud
vkd3d
];
in {
extraPackages = packages;
extraPackages32 = packages;
};
environment = {
systemPackages = with pkgs; [
2024-03-23 14:09:13 +03:00
android-studio jetbrains.idea-community
appimage-run
blender-hip
2024-03-23 14:09:13 +03:00
bottles dxvk gamescope mangohud vkd3d wine64
calibre
gimp
jellyfin-media-player
mpv
obs-studio
onlyoffice-bin
scanmem
steam-run
tor-browser
];
variables = {
# MangoHud.
MANGOHUD = "1";
2024-03-21 22:40:12 +03:00
MANGOHUD_CONFIGFILE = ./mangohud/MangoHud.conf;
MANGOHUD_PRESETSFILE = ./mangohud/MangoPresets.conf;
# Proton.
WINEFSYNC = "1";
};
};
# Special packages.
programs.steam.enable = true;
}