add more xdg env vars
This commit is contained in:
parent
3ff056aff9
commit
5e89baa6c4
1 changed files with 11 additions and 3 deletions
|
@ -1,18 +1,26 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
environment.variables = {
|
||||
PATH = "$PATH:/etc/nixos/scripts";
|
||||
environment.variables = rec {
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "code";
|
||||
|
||||
# XDG settings
|
||||
XDG_CONFIG_HOME = lib.mkDefault "$HOME/.config";
|
||||
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";
|
||||
|
||||
PATH = [
|
||||
"${XDG_BIN_HOME}"
|
||||
"/etc/nixos/scripts"
|
||||
];
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
|
|
Loading…
Add table
Reference in a new issue