mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-22 03:52:53 +00:00
add session variables
This commit is contained in:
parent
b3245a9f31
commit
839d8a360b
3 changed files with 17 additions and 13 deletions
|
@ -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.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
imports = [];
|
imports = [
|
||||||
|
./session-vars
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
14
modules/home-manager/session-vars/default.nix
Normal file
14
modules/home-manager/session-vars/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue