misc: initial commit
This commit is contained in:
commit
964b99b28d
32 changed files with 1675 additions and 0 deletions
31
home/xdg.nix
Normal file
31
home/xdg.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (config.xdg) stateHome dataHome configHome cacheHome;
|
||||
variables = {
|
||||
# Bash (.bash_history)
|
||||
HISTFILE = "${stateHome}/bash/history";
|
||||
|
||||
# Rust (.cargo)
|
||||
CARGO_HOME = "${dataHome}/cargo";
|
||||
RUSTUP_HOME = "${dataHome}/rustup";
|
||||
|
||||
# GTK2 (.gtkrc-2.0)
|
||||
GTK2_RC_FILES = "${configHome}/gtk-2.0/gtkrc";
|
||||
|
||||
# XCompose (.compose-cache)
|
||||
XCOMPOSECACHE = "${cacheHome}/X11/xcompose";
|
||||
|
||||
# NuGet (.nuget/packages)
|
||||
NUGET_PACKAGES = "${dataHome}/NuGetPackages";
|
||||
};
|
||||
in {
|
||||
home.sessionVariables = variables;
|
||||
systemd.user.sessionVariables = variables;
|
||||
|
||||
# Run `xdg-ninja` to check fixable dotfiles
|
||||
home.packages = [pkgs.xdg-ninja];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue