add session variables

This commit is contained in:
Aditya 2024-04-11 17:42:42 +05:30
parent b3245a9f31
commit 839d8a360b
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
3 changed files with 17 additions and 13 deletions

View file

@ -29,18 +29,6 @@
nixpkgs.config.joypixels.acceptLicense = true; nixpkgs.config.joypixels.acceptLicense = true;
# Manage session variables # Manage session variables
home.sessionVariables = {
# default editor
EDITOR = "nvim";
NIXPKGS_ALLOW_UNFREE = 1;
# 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 # The home.packages option allows you to install Nix packages into your
# environment. # environment.

View file

@ -1,3 +1,5 @@
{lib, ...}: { {lib, ...}: {
imports = []; imports = [
./session-vars
];
} }

View file

@ -0,0 +1,14 @@
_: {
home.sessionVariables = {
# default editor
EDITOR = "nvim";
NIXPKGS_ALLOW_UNFREE = 1;
# 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";
};
}