diff options
author | William Carroll <wpcarro@gmail.com> | 2020-03-10T22·08+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-03-10T23·07+0000 |
commit | 3ae100e4684636c77447559818ab0015d20e96c8 (patch) | |
tree | 5500c61669447b2950c6daaaed47c7407ae194c3 /configs | |
parent | 82b2c8c27c7b220dda33dbce70b73b26daa4edde (diff) |
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
Diffstat (limited to 'configs')
-rw-r--r-- | configs/.config/nixpkgs/home.nix | 3 | ||||
-rw-r--r-- | configs/.profile | 7 |
2 files changed, 3 insertions, 7 deletions
diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix index 840483556573..5e04d74a895b 100644 --- a/configs/.config/nixpkgs/home.nix +++ b/configs/.config/nixpkgs/home.nix @@ -23,6 +23,9 @@ ]; }; sessionVariables = { + BROWSER = "google-chrome"; + EDITOR = "emacsclient"; + ALTERNATE_EDITOR = "vim"; }; stateVersion = "19.09"; }; diff --git a/configs/.profile b/configs/.profile index a7119b968ade..75eb25267ea6 100644 --- a/configs/.profile +++ b/configs/.profile @@ -19,13 +19,6 @@ if [ -z "$DISPLAY" -a "$(tty)" = '/dev/tty5' ]; then exec xinit -- vt05 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. # export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" |