Manage session variables with home-manager
If you haven't noticed, home-manager is managing increasingly more of my configuration. - Migrate session variables to home.nix - Drop support for unused session variables like TERMINAL, VISUAL
This commit is contained in:
parent
82b2c8c27c
commit
3ae100e468
2 changed files with 3 additions and 7 deletions
|
@ -23,6 +23,9 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
|
BROWSER = "google-chrome";
|
||||||
|
EDITOR = "emacsclient";
|
||||||
|
ALTERNATE_EDITOR = "vim";
|
||||||
};
|
};
|
||||||
stateVersion = "19.09";
|
stateVersion = "19.09";
|
||||||
};
|
};
|
||||||
|
|
|
@ -19,13 +19,6 @@ if [ -z "$DISPLAY" -a "$(tty)" = '/dev/tty5' ]; then
|
||||||
exec xinit -- vt05
|
exec xinit -- vt05
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Application preferences
|
|
||||||
export BROWSER=google-chrome-stable
|
|
||||||
export TERMINAL=alacritty
|
|
||||||
export VISUAL=emacsclient
|
|
||||||
export EDITOR=emacsclient
|
|
||||||
export ALTERNATE_EDITOR=nvim
|
|
||||||
|
|
||||||
# Rust integration. Keep here so programs like Emacs can read this value.
|
# Rust integration. Keep here so programs like Emacs can read this value.
|
||||||
# export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
|
# export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue