File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 ./neovim
1010 ./packages.nix
1111 ./rust.nix
12+ ./xdg.nix
1213 ] ;
1314
1415 # session vars point LOCALE_ARCHIVE at i18n.glibcLocales; the default
Original file line number Diff line number Diff line change 33 home . packages = [ pkgs . go ] ;
44
55 programs . fish . shellInit = ''
6- set --global --export GOPATH "$HOME/go"
6+ set --global --export GOPATH "$HOME/.local/share/ go"
77 fish_add_path --global --move --path "$GOPATH/bin"
88 '' ;
99}
Original file line number Diff line number Diff line change 2020
2121 swapfile = false ;
2222 backup = false ;
23- undodir . __raw = ''os.getenv("HOME ") .. "/.vim/undodir "'' ;
23+ undodir . __raw = ''vim.fn.stdpath("state ") .. "/undo "'' ;
2424 undofile = true ;
2525
2626 termguicolors = true ;
3333 # plugins expect the state dirs at setup time (neo-tree opens its log there).
3434 extraConfigLuaPre = ''
3535 vim.fn.mkdir(vim.fn.stdpath("data"), "p")
36- vim.fn.mkdir(os.getenv("HOME ") .. "/.vim/undodir ", "p")
36+ vim.fn.mkdir(vim.fn.stdpath("state ") .. "/undo ", "p")
3737 '' ;
3838
3939 extraConfigLua = ''
Original file line number Diff line number Diff line change 33 home . packages = [ pkgs . rustup ] ;
44
55 programs . fish . shellInit = ''
6- fish_add_path --global --move --path "$HOME/.cargo/bin"
7- if test -e "$HOME/.cargo/env.fish"
8- source "$HOME/.cargo/env.fish"
6+ set --global --export CARGO_HOME "$HOME/.local/share/cargo"
7+ set --global --export RUSTUP_HOME "$HOME/.local/share/rustup"
8+ fish_add_path --global --move --path "$CARGO_HOME/bin"
9+ if test -e "$CARGO_HOME/env.fish"
10+ source "$CARGO_HOME/env.fish"
911 end
1012 '' ;
1113}
Original file line number Diff line number Diff line change 1+ { ... } :
2+ {
3+ # XDG base dirs — define with the spec defaults if the session hasn't.
4+ programs . fish . shellInit = ''
5+ set --query XDG_CONFIG_HOME; or set --global --export XDG_CONFIG_HOME "$HOME/.config"
6+ set --query XDG_CACHE_HOME; or set --global --export XDG_CACHE_HOME "$HOME/.cache"
7+ set --query XDG_DATA_HOME; or set --global --export XDG_DATA_HOME "$HOME/.local/share"
8+ set --query XDG_STATE_HOME; or set --global --export XDG_STATE_HOME "$HOME/.local/state"
9+ '' ;
10+ }
You can’t perform that action at this time.
0 commit comments