initial config
This commit is contained in:
30
modules/user/applications.nix
Normal file
30
modules/user/applications.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
# ==========================================
|
||||
# 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user