From 3ae100e4684636c77447559818ab0015d20e96c8 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 10 Mar 2020 22:08:42 +0000 Subject: [PATCH] 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 --- configs/.config/nixpkgs/home.nix | 3 +++ 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 840483556..5e04d74a8 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 a7119b968..75eb25267 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"