Files
Nixos-Config/modules/user/applications.nix
2026-04-20 15:08:47 +00:00

31 lines
824 B
Nix

# ==========================================
# APPLICATIONS CONFIGURATION
# ==========================================
{ config, pkgs, inputs, ... }:
{
# XDG default applications
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = "Alacritty.desktop";
"x-scheme-handler/http" = "Alacritty.desktop"; # Override with your browser .desktop
"x-scheme-handler/https" = "Alacritty.desktop";
"text/plain" = "nvim.desktop";
};
};
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
BROWSER = "firefox"; # Placeholder — change to helium if installed
TERMINAL = "alacritty";
# Wayland-native rendering for Electron apps
NIXOS_OZONE_WL = "1";
# Fix Java Swing apps on Wayland
_JAVA_AWT_WM_NONREPARENTING = "1";
};
}