From 4976f85e4b2ccfb4e505d1db87744cb100e96891 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 7 Jun 2023 12:09:37 +0530 Subject: [PATCH] add session variables --- home.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/home.nix b/home.nix index b0decf1..9d92e0e 100644 --- a/home.nix +++ b/home.nix @@ -21,6 +21,19 @@ nixpkgs.config.allowUnfree = true; nixpkgs.config.joypixels.acceptLicense = true; + # Manage session variables + home.sessionVariables = { + # default editor + EDITOR = "nvim"; + + # sshaskpass + SSH_ASKPASS = "/home/user/.nix-profile/bin/ksshaskpass"; + SSH_ASKPASS_REQUIRE = "prefer"; + + # Store git credentials in KDE Wallet + GIT_ASKPASS = "/home/user/.nix-profile/bin/ksshaskpass"; + }; + # The home.packages option allows you to install Nix packages into your # environment. home.packages = with pkgs; [