nix/module/desktop/App.nix

64 lines
1.3 KiB
Nix
Raw Normal View History

2024-04-30 20:36:22 +03:00
{ pkgs, ... } @args: let
mangohud = import ./mangohud args;
in {
2024-05-02 18:14:13 +03:00
imports = [
./firefox
];
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
2024-04-30 20:36:22 +03:00
pkgs.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
2024-05-03 18:00:29 +03:00
aseprite
blender-hip
2024-04-30 20:36:22 +03:00
bottles dxvk gamescope pkgs.mangohud vkd3d wine64
calibre
gimp
2024-04-18 19:58:36 +03:00
godot_4
jellyfin-media-player
2024-04-25 03:50:05 +03:00
(mpv.override {scripts = [mpvScripts.mpris];})
obs-studio
onlyoffice-bin
scanmem
steam-run
tor-browser
];
variables = {
# MangoHud.
MANGOHUD = "1";
2024-04-30 20:36:22 +03:00
MANGOHUD_CONFIGFILE = pkgs.writeText "mangoConfig" mangohud.config;
MANGOHUD_PRESETSFILE = pkgs.writeText "mangoPreset" mangohud.presets;
# Proton.
WINEFSYNC = "1";
};
};
# Special packages.
programs.steam.enable = true;
}