flake/nixos/environment.nix

32 lines
867 B
Nix
Raw Normal View History

{ lib, ... }:
{
2025-02-02 06:38:42 -06:00
environment.variables = rec {
2024-11-20 12:10:28 -05:00
EDITOR = "nvim";
2025-02-10 06:40:47 -06:00
VISUAL = "neovide";
# XDG settings
2025-02-02 06:38:42 -06:00
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state";
XDG_BIN_HOME = "$HOME/.local/bin";
# less settings
LESS = "-R";
# Fix unicode characters not being displayed properly in less or cat (bat)
# https://github.com/sharkdp/bat/issues/2578#issuecomment-1598332705
LESSUTFCHARDEF = "E000-F8FF:p,F0000-FFFFD:p,100000-10FFFD:p";
2025-02-02 06:38:42 -06:00
PATH = [
"${XDG_BIN_HOME}"
2025-02-04 14:37:32 -06:00
../scripts
2025-02-02 06:38:42 -06:00
];
};
environment.sessionVariables = {
# Enable Ozone Wayland support in Chromium and Electron applications
#TODO - This causes issues with VSCode until the November 2024 release.
2024-11-25 14:21:39 -05:00
NIXOS_OZONE_WL = lib.mkDefault "";
2024-11-16 13:38:09 -05:00
};
}