env variables

This commit is contained in:
Ivan Kirilov Dimitrov 2024-06-03 15:05:33 +02:00
parent d21ff63c43
commit 591d45cb65
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
3 changed files with 8 additions and 9 deletions

View File

@ -13,12 +13,18 @@
catppuccin.enable = true; catppuccin.enable = true;
}; };
home = { home = rec {
username = "ivand"; username = "ivand";
homeDirectory = "/home/ivand"; homeDirectory = "/home/ivand";
sessionPath = [ sessionPath = [
"$HOME/.local/bin" "$HOME/.local/bin"
]; ];
sessionVariables = {
PASSWORD_STORE_DIR = "${homeDirectory}/.password-store";
EDITOR = "nvim";
PAGER = "bat";
TERM = "screen-256color";
};
pointerCursor = { pointerCursor = {
name = "Catppuccin-Mocha-Green-Cursors"; name = "Catppuccin-Mocha-Green-Cursors";
package = pkgs.catppuccin-cursors.mochaGreen; package = pkgs.catppuccin-cursors.mochaGreen;

View File

@ -12,10 +12,7 @@
} }
} }
''; '';
PASSWORD_STORE_DIR = "($env.HOME | path join .password-store)";
PATH = "($env.PATH | split row (char esep) | append ($env.HOME | path join .local bin))"; PATH = "($env.PATH | split row (char esep) | append ($env.HOME | path join .local bin))";
EDITOR = "nvim";
TERM = "screen-256color";
}; };
shellAliases = { shellAliases = {
gcal = '' gcal = ''

View File

@ -7,11 +7,6 @@
loginExtra = '' loginExtra = ''
[ "$(tty)" = "/dev/tty1" ] && exec sway [ "$(tty)" = "/dev/tty1" ] && exec sway
''; '';
sessionVariables = {
PASSWORD_STORE_DIR = "$HOME/.password-store";
PAGER = "bat";
TERM = "screen-256color";
};
shellAliases = { shellAliases = {
cal = "cal $(date +%Y)"; cal = "cal $(date +%Y)";
GG = "git add . && git commit -m 'GG' && git push --set-upstream origin HEAD"; GG = "git add . && git commit -m 'GG' && git push --set-upstream origin HEAD";
@ -25,6 +20,7 @@
la = "${pkgs.nushell}/bin/nu -c 'ls -al'"; la = "${pkgs.nushell}/bin/nu -c 'ls -al'";
torrent = "transmission-remote"; torrent = "transmission-remote";
vi = "nvim"; vi = "nvim";
sc = "systemctl";
}; };
shellGlobalAliases = { shellGlobalAliases = {
comp = "-vcodec libx265 -crf 28"; comp = "-vcodec libx265 -crf 28";