declutter $HOME :)
This commit is contained in:
parent
3450585513
commit
b7cc34b6e9
5 changed files with 58 additions and 39 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
home.packages = [ pkgs.nodejs ];
|
home.packages = [ pkgs.nodejs ];
|
||||||
|
|
||||||
home.file.".npmrc".text = ''
|
xdg.configFile."npm/npmrc".text = ''
|
||||||
cache=${config.xdg.dataHome}/npm/cache
|
cache=${config.xdg.dataHome}/npm/cache
|
||||||
prefix=${config.xdg.dataHome}/npm
|
prefix=${config.xdg.dataHome}/npm
|
||||||
store-dir=${config.xdg.dataHome}/npm/pnpm-store
|
store-dir=${config.xdg.dataHome}/npm/pnpm-store
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,5 @@ if command -v dbus-update-activation-environment > /dev/null 2>&1; then
|
||||||
dbus-update-activation-environment DISPLAY XAUTHORITY
|
dbus-update-activation-environment DISPLAY XAUTHORITY
|
||||||
fi
|
fi
|
||||||
|
|
||||||
xrdb ~/.Xresources
|
xrdb ${XDG_CONFIG_HOME}/xorg/xresources
|
||||||
exec ~/.xsession
|
exec ${XDG_CONFIG_HOME}/xorg/xsession
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||||
font = {
|
font = {
|
||||||
package = pkgs.open-sans;
|
package = pkgs.open-sans;
|
||||||
name = "Open Sans";
|
name = "Open Sans";
|
||||||
|
|
|
||||||
|
|
@ -1,43 +1,52 @@
|
||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
xsession.enable = true;
|
|
||||||
home.file.".xinitrc".source = ./scripts/xinitrc;
|
xsession = {
|
||||||
|
enable = true;
|
||||||
|
profilePath = ".config/xorg/xprofile";
|
||||||
|
scriptPath = ".config/xorg/xsession";
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."xorg/xinitrc".source = ./scripts/xinitrc;
|
||||||
xdg.configFile."xorg/wallpaper.png".source = ../../res/wallpaper.png;
|
xdg.configFile."xorg/wallpaper.png".source = ../../res/wallpaper.png;
|
||||||
xresources.properties = {
|
xresources = {
|
||||||
# special
|
path = "${config.xdg.configHome}/xorg/xresources";
|
||||||
"*.foreground" = "#c5c8c6";
|
properties = {
|
||||||
"*.background" = "#1d1f21";
|
# special
|
||||||
"*.cursorColor" = "#c5c8c6";
|
"*.foreground" = "#c5c8c6";
|
||||||
|
"*.background" = "#1d1f21";
|
||||||
|
"*.cursorColor" = "#c5c8c6";
|
||||||
|
|
||||||
# black
|
# black
|
||||||
"*.color0" = "#1d1f21";
|
"*.color0" = "#1d1f21";
|
||||||
"*.color8" = "#969896";
|
"*.color8" = "#969896";
|
||||||
|
|
||||||
# red
|
# red
|
||||||
"*.color1" = "#cc342b";
|
"*.color1" = "#cc342b";
|
||||||
"*.color9" = "#cc342b";
|
"*.color9" = "#cc342b";
|
||||||
|
|
||||||
# green
|
# green
|
||||||
"*.color2" = "#198844";
|
"*.color2" = "#198844";
|
||||||
"*.color10" = "#198844";
|
"*.color10" = "#198844";
|
||||||
|
|
||||||
# yellow
|
# yellow
|
||||||
"*.color3" = "#fba922";
|
"*.color3" = "#fba922";
|
||||||
"*.color11" = "#fba922";
|
"*.color11" = "#fba922";
|
||||||
|
|
||||||
# blue
|
# blue
|
||||||
"*.color4" = "#3971ed";
|
"*.color4" = "#3971ed";
|
||||||
"*.color12" = "#3971ed";
|
"*.color12" = "#3971ed";
|
||||||
|
|
||||||
# magenta
|
# magenta
|
||||||
"*.color5" = "#a36ac7";
|
"*.color5" = "#a36ac7";
|
||||||
"*.color13" = "#a36ac7";
|
"*.color13" = "#a36ac7";
|
||||||
|
|
||||||
# cyan
|
# cyan
|
||||||
"*.color6" = "#3971ed";
|
"*.color6" = "#3971ed";
|
||||||
"*.color14" = "#3971ed";
|
"*.color14" = "#3971ed";
|
||||||
|
|
||||||
# white
|
# white
|
||||||
"*.color7" = "#c5c8c6";
|
"*.color7" = "#c5c8c6";
|
||||||
"*.color15" = "#ffffff";
|
"*.color15" = "#ffffff";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -116,17 +116,26 @@ in rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
WINEPREFIX = "${config.xdg.dataHome}/wine64";
|
|
||||||
WINEARCH = "win64";
|
|
||||||
|
|
||||||
EDITOR = "nvim";
|
|
||||||
PATH = builtins.concatStringsSep ":" [
|
PATH = builtins.concatStringsSep ":" [
|
||||||
"${config.home.homeDirectory}/.local/bin"
|
"${config.home.homeDirectory}/.local/bin"
|
||||||
"${config.xdg.dataHome}/npm/bin"
|
"${config.xdg.dataHome}/npm/bin"
|
||||||
"$PATH"
|
"$PATH"
|
||||||
];
|
];
|
||||||
DIRENV_LOG_FORMAT = "";
|
|
||||||
|
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
|
||||||
|
EDITOR = "nvim";
|
||||||
|
|
||||||
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
||||||
|
DIRENV_LOG_FORMAT = "";
|
||||||
|
GNUPGHOME = "${config.xdg.dataHome}/gnupg";
|
||||||
|
GTK2_RC_FILES = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||||
|
LESSHISTFILE = "-";
|
||||||
|
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
|
||||||
|
WGETRC = "${config.xdg.configHome}/wgetrc";
|
||||||
|
XINITRC = "${config.xdg.configHome}/xorg/xinitrc";
|
||||||
|
|
||||||
|
WINEPREFIX = "${config.xdg.dataHome}/wine64";
|
||||||
|
WINEARCH = "win64";
|
||||||
};
|
};
|
||||||
localVariables = {
|
localVariables = {
|
||||||
PS1 = "%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b ";
|
PS1 = "%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b ";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue