2023-11-07 21:49:36 +01:00
|
|
|
{ pkgs, config, lib, ... }:
|
2023-11-07 23:17:40 +01:00
|
|
|
let
|
|
|
|
direnv = {
|
|
|
|
# Environment variables making programs stay out of $HOME, but also needing we create a directory for them
|
|
|
|
CARGOHOME = "${config.xdg.cacheHome}/cargo"; # There are config in there that we can version if one want
|
|
|
|
CCACHE_DIR = "${config.xdg.cacheHome}/ccache"; # The config file alone seems to be not enough
|
|
|
|
DASHT_DOCSETS_DIR = "${config.xdg.cacheHome}/dash_docsets";
|
|
|
|
GOPATH = "${config.xdg.cacheHome}/go";
|
|
|
|
GRADLE_USER_HOME = "${config.xdg.cacheHome}/gradle";
|
|
|
|
MIX_ARCHIVES = "${config.xdg.cacheHome}/mix/archives";
|
|
|
|
MONO_GAC_PREFIX = "${config.xdg.cacheHome}/mono";
|
|
|
|
npm_config_cache = "${config.xdg.cacheHome}/npm";
|
|
|
|
PARALLEL_HOME = "${config.xdg.cacheHome}/parallel";
|
|
|
|
TERMINFO = "${config.xdg.configHome}/terminfo";
|
|
|
|
WINEPREFIX = "${config.xdg.stateHome}/wineprefix/default";
|
|
|
|
YARN_CACHE_FOLDER = "${config.xdg.cacheHome}/yarn";
|
|
|
|
# TODO Some of that stuff is not really relavant any more
|
|
|
|
};
|
|
|
|
dotfilesPath = "$HOME/.dotfiles"; # FIXME I think we want it in ~/.config/dotfiles, also, should be an option
|
|
|
|
in
|
2023-10-28 22:09:36 +02:00
|
|
|
{
|
|
|
|
|
2023-11-07 21:49:36 +01:00
|
|
|
programs =
|
|
|
|
let
|
2023-11-07 23:17:40 +01:00
|
|
|
commonRc = lib.strings.concatLines ([
|
|
|
|
''
|
|
|
|
# Colored ls
|
2023-11-19 20:51:05 +01:00
|
|
|
# TODO Doesn't allow completion. Check out lsd instead
|
2023-11-07 23:17:40 +01:00
|
|
|
_colored_ls() {
|
|
|
|
\ls -lh --color=always $@ | awk '
|
|
|
|
BEGIN {
|
|
|
|
FPAT = "([[:space:]]*[^[:space:]]+)";
|
|
|
|
OFS = "";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
$1 = "\033[36m" $1 "\033[0m";
|
|
|
|
$2 = "\033[31m" $2 "\033[0m";
|
|
|
|
$3 = "\033[32m" $3 "\033[0m";
|
|
|
|
$4 = "\033[32m" $4 "\033[0m";
|
|
|
|
$5 = "\033[31m" $5 "\033[0m";
|
|
|
|
$6 = "\033[34m" $6 "\033[0m";
|
|
|
|
$7 = "\033[34m" $7 "\033[0m";
|
|
|
|
print
|
|
|
|
}
|
|
|
|
'
|
|
|
|
}
|
|
|
|
alias ll="_colored_ls"
|
|
|
|
alias la="_colored_ls -a"
|
|
|
|
''
|
|
|
|
] ++ map (d: "mkdir -p ${d}") (builtins.attrValues direnv));
|
2023-11-08 12:23:30 +01:00
|
|
|
# TODO Those directory creations should probably done on home-manager activation
|
2023-11-07 21:49:36 +01:00
|
|
|
commonSessionVariables = {
|
|
|
|
TIME_STYLE = "+%Y-%m-%d %H:%M:%S";
|
|
|
|
# Less colors
|
|
|
|
LESS = "-R";
|
|
|
|
LESS_TERMCAP_mb = "$'\E[1;31m'"; # begin blink
|
|
|
|
LESS_TERMCAP_md = "$'\E[1;36m'"; # begin bold
|
|
|
|
LESS_TERMCAP_me = "$'\E[0m'"; # reset bold/blink
|
|
|
|
LESS_TERMCAP_so = "$'\E[01;44;33m'"; # begin reverse video
|
|
|
|
LESS_TERMCAP_se = "$'\E[0m'"; # reset reverse video
|
|
|
|
LESS_TERMCAP_us = "$'\E[1;32m'"; # begin underline
|
|
|
|
LESS_TERMCAP_ue = "$'\E[0m'"; # reset underline
|
|
|
|
# Fzf
|
|
|
|
FZF_COMPLETION_OPTS = "${lib.strings.concatStringsSep " " config.programs.fzf.fileWidgetOptions}";
|
2023-11-06 23:12:47 +01:00
|
|
|
};
|
2023-11-10 23:31:11 +01:00
|
|
|
treatsHomeAsJunk = [
|
|
|
|
# Programs that think $HOME is a reasonable place to put their junk
|
|
|
|
# and don't allow the user to change those questionable choices
|
|
|
|
"adb"
|
|
|
|
"audacity"
|
|
|
|
"binwalk" # Should use .config according to the GitHub code though
|
|
|
|
"cabal" # TODO May have options but last time I tried it it crashed
|
|
|
|
"cmake"
|
|
|
|
"ddd"
|
|
|
|
"ghidra"
|
|
|
|
"itch"
|
|
|
|
"simplescreenrecorder" # Easy fix https://github.com/MaartenBaert/ssr/blob/1556ae456e833992fb6d39d40f7c7d7c337a4160/src/Main.cpp#L252
|
|
|
|
"vd"
|
|
|
|
"wpa_cli"
|
|
|
|
# TODO Maybe we can do something about node-gyp
|
|
|
|
];
|
2023-11-07 21:49:36 +01:00
|
|
|
commonShellAliases = {
|
2023-11-10 23:31:11 +01:00
|
|
|
# Completion for existing commands
|
|
|
|
ls = "ls -h --color=auto";
|
|
|
|
mkdir = "mkdir -v";
|
|
|
|
# cp = "cp -i"; # Disabled because conflicts with the ZSH/Bash one. This separation is confusing I swear.
|
|
|
|
mv = "mv -iv";
|
|
|
|
free = "free -h";
|
|
|
|
df = "df -h";
|
|
|
|
ffmpeg = "ffmpeg -hide_banner";
|
|
|
|
ffprobe = "ffprobe -hide_banner";
|
|
|
|
ffplay = "ffplay -hide_banner";
|
|
|
|
# TODO Add ipython --no-confirm-exit --pdb
|
|
|
|
|
|
|
|
# Frequent mistakes
|
|
|
|
sl = "ls";
|
|
|
|
al = "la";
|
|
|
|
mdkir = "mkdir";
|
|
|
|
systemclt = "systemctl";
|
|
|
|
please = "sudo";
|
|
|
|
|
|
|
|
# Shortcuts for commonly used commands
|
|
|
|
# ll = "ls -l"; # Disabled because would overwrite the colored one
|
|
|
|
# la = "ls -la"; # Eh maybe it's not that bad, but for now let's keep compatibility
|
|
|
|
s = "sudo -s -E";
|
|
|
|
# n = "$HOME/.config/i3/terminal & disown"; # Not used anymore since alacritty daemon mode doesn't preserve environment variables
|
|
|
|
x = "startx ${config.xdg.configHome}/xinitrc; logout";
|
|
|
|
nx = "nvidia-xrun ${config.xdg.configHome}/xinitrc; sudo systemctl start nvidia-xrun-pm; logout";
|
|
|
|
# TODO Put in display.nix
|
|
|
|
# Was also thinking of not storing the config in .config and use nix-store instead,
|
|
|
|
# but maybe it's a bad idea as home-manager switch doesn't replace aliases in running shells
|
|
|
|
# FIXME Is it still relevant with NixOS?
|
|
|
|
|
|
|
|
|
|
|
|
# Give additional config to those programs, and not have them in my path
|
|
|
|
bower = "bower --config.storage.packages=${config.xdg.cacheHome}/bower/packages --config.storage.registry=${config.xdg.cacheHome}/bower/registry --config.storage.links=${config.xdg.cacheHome}/bower/links";
|
|
|
|
gdb = "gdb -x ${config.xdg.configHome}/gdbinit";
|
|
|
|
iftop = "iftop -c ${config.xdg.configHome}/iftoprc";
|
|
|
|
lmms = "lmms --config ${config.xdg.configHome}/lmmsrc.xml";
|
|
|
|
tmux = "tmux -f ${config.xdg.configHome}/tmux/tmux.conf";
|
|
|
|
|
|
|
|
# Preference
|
|
|
|
vi = "nvim";
|
|
|
|
vim = "nvim";
|
|
|
|
wol = "wakeonlan"; # TODO Really, isn't wol better? Also wtf Arch aliases to pass because neither is installed anyways x)
|
|
|
|
mutt = "neomutt";
|
|
|
|
|
|
|
|
# Bash/Zsh only
|
2023-11-07 21:49:36 +01:00
|
|
|
cp = "cp -i --reflink=auto";
|
|
|
|
grep = "grep --color=auto";
|
|
|
|
dd = "dd status=progress";
|
|
|
|
rm = "rm -v --one-file-system";
|
2023-11-10 23:31:11 +01:00
|
|
|
# free = "free -m"; # Disabled because... no? Why?
|
2023-11-07 21:49:36 +01:00
|
|
|
diff = "diff --color=auto";
|
|
|
|
dmesg = "dmesg --ctime";
|
|
|
|
wget = "wget --hsts-file ${config.xdg.cacheHome}/wget-hsts";
|
2023-11-12 22:44:20 +01:00
|
|
|
} // lib.attrsets.mergeAttrsList (map (p: { "${p}" = "HOME=${config.xdg.cacheHome}/junkhome ${p}"; }) treatsHomeAsJunk);
|
2023-11-10 23:31:11 +01:00
|
|
|
# TODO Maybe make nixpkg wrapper instead? So it also works from dmenu
|
|
|
|
# Could also accept my fate... Home-manager doesn't necessarily make it easy to put things out of the home directory
|
2023-11-07 21:49:36 +01:00
|
|
|
historySize = 100000;
|
|
|
|
historyFile = "${config.xdg.cacheHome}/shell_history";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
home-manager.enable = true;
|
|
|
|
bash = {
|
|
|
|
enable = true;
|
|
|
|
bashrcExtra = lib.strings.concatLines [
|
|
|
|
commonRc
|
|
|
|
''
|
|
|
|
shopt -s expand_aliases
|
|
|
|
shopt -s histappend
|
|
|
|
''
|
|
|
|
];
|
|
|
|
sessionVariables = commonSessionVariables;
|
|
|
|
historySize = historySize;
|
|
|
|
historyFile = historyFile;
|
|
|
|
historyFileSize = historySize;
|
|
|
|
historyControl = [ "erasedups" "ignoredups" "ignorespace" ];
|
|
|
|
shellAliases = commonShellAliases;
|
2023-10-28 23:03:27 +02:00
|
|
|
};
|
2023-11-07 21:49:36 +01:00
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
enableSyntaxHighlighting = true;
|
|
|
|
# syntaxHighlighting.enable = true; # 23.11 syntax
|
|
|
|
historySubstringSearch.enable = true;
|
|
|
|
initExtra = lib.strings.concatLines [
|
|
|
|
commonRc
|
|
|
|
(builtins.readFile ./zshrc.sh)
|
|
|
|
];
|
|
|
|
defaultKeymap = "viins";
|
|
|
|
history = {
|
|
|
|
size = historySize;
|
|
|
|
save = historySize;
|
|
|
|
path = historyFile;
|
|
|
|
expireDuplicatesFirst = true;
|
2023-10-28 23:03:27 +02:00
|
|
|
};
|
2023-11-07 21:49:36 +01:00
|
|
|
sessionVariables = commonSessionVariables;
|
|
|
|
shellAliases = commonShellAliases;
|
|
|
|
};
|
|
|
|
dircolors = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
# UPST This thing put stuff in .dircolors when it actually doesn't have to
|
|
|
|
};
|
|
|
|
powerline-go = {
|
|
|
|
enable = true;
|
|
|
|
modules = [ "user" "host" "venv" "cwd" "perms" "git" ];
|
|
|
|
modulesRight = [ "jobs" "exit" "duration" "load" ];
|
|
|
|
settings = {
|
|
|
|
colorize-hostname = true;
|
|
|
|
max-width = 25;
|
|
|
|
cwd-max-dir-size = 10;
|
|
|
|
duration = "$( test -n \"$__TIMER\" && echo $(( $EPOCHREALTIME - $\{__TIMER:-EPOCHREALTIME})) || echo 0 )";
|
|
|
|
# UPST Implement this properly in home-manager, would allow for bash support
|
|
|
|
};
|
|
|
|
extraUpdatePS1 = ''unset __TIMER'';
|
|
|
|
};
|
|
|
|
# neovim = {
|
|
|
|
# enable = true;
|
|
|
|
# defaultEditor = true;
|
|
|
|
# vimAlias = true;
|
|
|
|
# viAlias = true;
|
|
|
|
# vimdiffAlias = true;
|
|
|
|
# };
|
|
|
|
# FIXME Still want this despite using nixvim
|
|
|
|
gpg = {
|
|
|
|
enable = true;
|
|
|
|
homedir = "${config.xdg.stateHome}/gnupg";
|
|
|
|
settings = {
|
|
|
|
# Remove fluff
|
|
|
|
no-greeting = true;
|
|
|
|
no-emit-version = true;
|
|
|
|
no-comments = true;
|
|
|
|
# Output format that I prefer
|
|
|
|
keyid-format = "0xlong";
|
|
|
|
# Show fingerprints
|
|
|
|
with-fingerprint = true;
|
|
|
|
# Make sure to show if key is invalid
|
|
|
|
# (should be default on most platform,
|
|
|
|
# but just to be sure)
|
|
|
|
list-options = "show-uid-validity";
|
|
|
|
verify-options = "show-uid-validity";
|
|
|
|
# Stronger algorithm (https://wiki.archlinux.org/title/GnuPG#Different_algorithm)
|
|
|
|
personal-digest-preferences = "SHA512";
|
|
|
|
cert-digest-algo = "SHA512";
|
|
|
|
default-preference-list = "SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed";
|
|
|
|
personal-cipher-preferences = "TWOFISH CAMELLIA256 AES 3DES";
|
|
|
|
};
|
|
|
|
publicKeys = [{
|
|
|
|
source = builtins.fetchurl {
|
|
|
|
url = "https://keys.openpgp.org/vks/v1/by-fingerprint/4FBA930D314A03215E2CDB0A8312C8CAC1BAC289";
|
|
|
|
sha256 = "sha256:10y9xqcy1vyk2p8baay14p3vwdnlwynk0fvfbika65hz2z8yw2cm";
|
|
|
|
};
|
|
|
|
trust = "ultimate";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
fzf = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
defaultOptions = [ "--height 40%" "--layout=default" ];
|
2023-11-12 21:53:52 +01:00
|
|
|
fileWidgetOptions = [ "--preview '[[ -d {} ]] && ${pkgs.coreutils}/bin/ls -l --color=always {} || [[ \$(${pkgs.file}/bin/file --mime {}) =~ binary ]] && ${pkgs.file}/bin/file --brief {} || (${pkgs.highlight}/bin/highlight -O ansi -l {} || coderay {} || rougify {} || ${pkgs.coreutils}/bin/cat {}) 2> /dev/null | head -500'" ];
|
|
|
|
# file and friends are not in PATH by default... so here we want aboslute paths, which means those won't get reloaded. Meh.
|
2023-11-07 21:49:36 +01:00
|
|
|
};
|
|
|
|
# TODO highlight or bat
|
|
|
|
nix-index = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
|
|
|
less.enable = true;
|
2023-11-12 22:44:20 +01:00
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
aliases = {
|
|
|
|
"git" = "!exec git"; # In case I write one too many git
|
|
|
|
};
|
|
|
|
ignores = [
|
|
|
|
"*.swp"
|
|
|
|
"*.swo"
|
|
|
|
"*.ycm_extra_conf.py"
|
|
|
|
"tags"
|
|
|
|
".mypy_cache"
|
|
|
|
];
|
|
|
|
lfs.enable = true;
|
|
|
|
signing = {
|
|
|
|
key = "0x8312C8CAC1BAC289"; # FIXME Only in extension
|
|
|
|
# TODO signByDefault?
|
|
|
|
};
|
|
|
|
userEmail = "geoffrey@frogeye.fr";
|
|
|
|
userName = "Geoffrey “Frogeye” Preud'homme";
|
|
|
|
extraConfig = {
|
|
|
|
core = {
|
|
|
|
editor = "nvim";
|
|
|
|
};
|
|
|
|
push = {
|
|
|
|
default = "matching";
|
|
|
|
};
|
|
|
|
pull = {
|
|
|
|
ff = "only";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# TODO Delta syntax highlighter... and other cool-looking options?
|
|
|
|
};
|
|
|
|
readline = {
|
|
|
|
enable = true;
|
|
|
|
variables = {
|
|
|
|
"bell-style" = "none";
|
|
|
|
"colored-completion-prefix" = true;
|
|
|
|
"colored-stats" = true;
|
|
|
|
"completion-ignore-case" = true;
|
|
|
|
"completion-query-items" = 200;
|
|
|
|
"editing-mode" = "vi";
|
|
|
|
"history-preserve-point" = true;
|
|
|
|
"history-size" = 10000;
|
|
|
|
"horizontal-scroll-mode" = false;
|
|
|
|
"mark-directories" = true;
|
|
|
|
"mark-modified-lines" = false;
|
|
|
|
"mark-symlinked-directories" = true;
|
|
|
|
"match-hidden-files" = true;
|
|
|
|
"menu-complete-display-prefix" = true;
|
|
|
|
"page-completions" = true;
|
|
|
|
"print-completions-horizontally" = false;
|
|
|
|
"revert-all-at-newline" = false;
|
|
|
|
"show-all-if-ambiguous" = true;
|
|
|
|
"show-all-if-unmodified" = true;
|
|
|
|
"show-mode-in-prompt" = true;
|
|
|
|
"skip-completed-text" = true;
|
|
|
|
"visible-stats" = false;
|
|
|
|
};
|
|
|
|
extraConfig = builtins.readFile ./inputrc;
|
|
|
|
};
|
2023-11-05 23:19:04 +01:00
|
|
|
};
|
2023-11-08 12:23:30 +01:00
|
|
|
services = {
|
|
|
|
gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
enableSshSupport = true;
|
|
|
|
pinentryFlavor = "gtk2"; # Falls back to curses when needed
|
2023-11-10 23:31:11 +01:00
|
|
|
sshKeys = [ "72A5F2913026776593947CF00DFF330E820E731D" ]; # TODO This seems to prevent other keys from being added?
|
2023-11-08 12:23:30 +01:00
|
|
|
# FIXME For g extension, as base is not supposed to have private keys
|
|
|
|
};
|
|
|
|
};
|
2023-11-12 22:44:20 +01:00
|
|
|
xdg = {
|
|
|
|
configFile = {
|
|
|
|
# TODO Should be xdg.configFile
|
|
|
|
"ccache.conf" = {
|
|
|
|
text = "ccache_dir = ${config.xdg.cacheHome}/ccache";
|
|
|
|
};
|
|
|
|
"gdbinit" = {
|
|
|
|
text = ''
|
|
|
|
define hook-quit
|
|
|
|
set confirm off
|
|
|
|
end
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"iftoprc" = {
|
|
|
|
text = ''
|
|
|
|
port-resolution: no
|
|
|
|
promiscuous: no
|
|
|
|
port-display: on
|
|
|
|
link-local: yes
|
|
|
|
use-bytes: yes
|
|
|
|
show-totals: yes
|
|
|
|
log-scale: yes
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-11-05 21:32:31 +01:00
|
|
|
home = {
|
|
|
|
stateVersion = "23.05";
|
2023-11-05 21:36:11 +01:00
|
|
|
language = {
|
|
|
|
base = "en_US.UTF-8";
|
|
|
|
time = "en_DK.UTF-8";
|
|
|
|
};
|
2023-11-05 21:32:31 +01:00
|
|
|
packages = with pkgs; [
|
|
|
|
# dotfiles dependencies
|
|
|
|
coreutils
|
|
|
|
bash
|
|
|
|
gnugrep
|
|
|
|
gnused
|
|
|
|
gnutar
|
|
|
|
openssl
|
|
|
|
wget
|
|
|
|
curl
|
|
|
|
python3Packages.pip
|
|
|
|
ansible # TODO Reevaluate
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2023-11-05 21:32:31 +01:00
|
|
|
# shell
|
|
|
|
zsh-completions
|
|
|
|
nix-zsh-completions
|
|
|
|
zsh-history-substring-search
|
|
|
|
antigen # TODO Reevaluate
|
|
|
|
powerline-go
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2023-11-05 21:32:31 +01:00
|
|
|
# terminal essentials
|
|
|
|
moreutils
|
|
|
|
man
|
|
|
|
visidata
|
|
|
|
nodePackages.insect
|
|
|
|
translate-shell
|
|
|
|
unzip
|
|
|
|
unrar
|
|
|
|
p7zip
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2023-11-05 21:32:31 +01:00
|
|
|
# remote
|
|
|
|
openssh
|
|
|
|
rsync
|
|
|
|
borgbackup
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2023-11-05 21:32:31 +01:00
|
|
|
# cleanup
|
|
|
|
ncdu
|
|
|
|
jdupes
|
|
|
|
duperemove
|
|
|
|
optipng
|
|
|
|
libjpeg
|
|
|
|
# FIXME reflac not available (but also a dumb shell script)
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2023-11-05 21:32:31 +01:00
|
|
|
# local monitoring
|
|
|
|
htop
|
|
|
|
iotop
|
|
|
|
iftop
|
|
|
|
lsof
|
|
|
|
strace
|
|
|
|
pv
|
|
|
|
progress
|
|
|
|
speedtest-cli
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2023-11-05 21:32:31 +01:00
|
|
|
# multimedia toolbox
|
|
|
|
ffmpeg
|
|
|
|
sox
|
|
|
|
imagemagick
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2023-11-05 21:32:31 +01:00
|
|
|
# password
|
|
|
|
pass
|
|
|
|
pwgen
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2023-11-05 21:32:31 +01:00
|
|
|
# Mail
|
|
|
|
isync
|
|
|
|
msmtp
|
|
|
|
notmuch
|
|
|
|
neomutt
|
|
|
|
lynx
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2023-11-05 21:32:31 +01:00
|
|
|
# Organisation
|
|
|
|
vdirsyncer
|
|
|
|
khard
|
|
|
|
khal
|
|
|
|
todoman
|
|
|
|
syncthing
|
2023-10-28 22:09:36 +02:00
|
|
|
|
2023-11-05 21:32:31 +01:00
|
|
|
];
|
2023-11-07 23:17:40 +01:00
|
|
|
sessionVariables = {
|
|
|
|
# Favourite commands
|
|
|
|
PAGER = "${pkgs.coreutils}/bin/less";
|
|
|
|
EDITOR = "${pkgs.neovim}/bin/nvim";
|
|
|
|
VISUAL = "${pkgs.neovim}/bin/nvim";
|
|
|
|
BROWSER = "${config.programs.qutebrowser.package}/bin/qutebrowser";
|
|
|
|
} // direnv // {
|
|
|
|
BOOT9_PATH = "${config.xdg.dataHome}/citra-emu/sysdata/boot9.bin";
|
|
|
|
CCACHE_CONFIGPATH = "${config.xdg.configHome}/ccache.conf";
|
2023-11-08 12:23:30 +01:00
|
|
|
# INPUTRC = "${config.xdg.configHome}/inputrc"; # UPST Will use programs.readline, but doesn't allow path setting
|
2023-11-07 23:17:40 +01:00
|
|
|
LESSHISTFILE = "${config.xdg.stateHome}/lesshst";
|
|
|
|
NODE_REPL_HISTORY = "${config.xdg.cacheHome}/node_repl_history";
|
|
|
|
PYTHONSTARTUP = "${config.xdg.configHome}/pythonstartup.py";
|
|
|
|
RXVT_SOCKET = "${config.xdg.stateHome}/urxvtd"; # Used to want -$HOME suffix, hopefullt this isn't needed
|
|
|
|
SCREENRC = "${config.xdg.configHome}/screenrc";
|
|
|
|
SQLITE_HISTFILE = "${config.xdg.stateHome}/sqlite_history";
|
|
|
|
YARN_DISABLE_SELF_UPDATE_CHECK = "true"; # This also disable the creation of a ~/.yarnrc file
|
|
|
|
# XAUTHORITY = "${config.xdg.configHome}/Xauthority"; # Disabled as this causes lock-ups with DMs
|
|
|
|
};
|
|
|
|
# TODO Session variables only get reloaded on login I think.
|
|
|
|
sessionPath = [
|
|
|
|
"$HOME/.local/bin"
|
|
|
|
"${config.home.sessionVariables.GOPATH}"
|
|
|
|
"${dotfilesPath}/config/scripts"
|
|
|
|
];
|
2023-11-05 21:32:31 +01:00
|
|
|
};
|
2023-10-28 22:09:36 +02:00
|
|
|
}
|