2024-07-04 01:14:24 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2024-07-04 01:13:59 +02:00
|
|
|
let
|
|
|
|
HOME = config.home-manager.users.krizej.home.homeDirectory;
|
|
|
|
in {
|
|
|
|
home-manager.users.krizej = {
|
|
|
|
home.packages = with pkgs; [
|
2024-07-04 01:14:24 +02:00
|
|
|
xdg-user-dirs
|
2024-07-04 01:13:59 +02:00
|
|
|
xdg-desktop-portal
|
|
|
|
xdg-desktop-portal-gnome
|
|
|
|
];
|
|
|
|
|
|
|
|
home.sessionVariables = rec {
|
|
|
|
# xdg crap thx poz
|
|
|
|
XDG_DATA_HOME = "${HOME}/.local/share";
|
|
|
|
XDG_CONFIG_HOME = "${HOME}/.config";
|
|
|
|
XDG_STATE_HOME = "${HOME}/.local/state";
|
|
|
|
XDG_CACHE_HOME = "${HOME}/.cache";
|
|
|
|
ANDROID_USER_HOME = "${XDG_DATA_HOME}/android";
|
|
|
|
ANDROID_HOME = "${XDG_DATA_HOME}/android/sdk";
|
|
|
|
GRADLE_USER_HOME = "${XDG_DATA_HOME}/gradle";
|
|
|
|
PYTHONSTARTUP = "${XDG_CONFIG_HOME}/python/pythonrc";
|
|
|
|
HISTFILE = "${XDG_CACHE_HOME}/bash/history";
|
|
|
|
CARGO_HOME = "${XDG_DATA_HOME}/cargo";
|
|
|
|
_JAVA_OPTIONS = "-Djava.utils.prefs.userRoot=${XDG_CONFIG_HOME}/java";
|
|
|
|
GNUPGHOME = "${XDG_DATA_HOME}/gnupg";
|
|
|
|
WINEPREFIX = "${XDG_DATA_HOME}/wine";
|
|
|
|
RUSTUP_HOME = "${XDG_DATA_HOME}/rustup";
|
|
|
|
NUGET_PACKAGES = "${XDG_CACHE_HOME}/NuGetPackages";
|
|
|
|
FCEUX_HOME = "${XDG_CONFIG_HOME}/fceux";
|
|
|
|
DOTNET_CLI_HOME = "${XDG_CONFIG_HOME}/dotnet";
|
|
|
|
GTK2_RC_FILES = lib.mkForce "${XDG_CONFIG_HOME}/gtk-2.0/gtkrc";
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.userDirs = {
|
|
|
|
enable = true;
|
|
|
|
desktop = "${HOME}/desktop";
|
|
|
|
documents = "${HOME}/documents";
|
|
|
|
download = "${HOME}/downloads";
|
|
|
|
music = "${HOME}/music";
|
|
|
|
pictures = "${HOME}/pictures";
|
|
|
|
publicShare = "${HOME}/public";
|
|
|
|
templates = "${HOME}/templates";
|
|
|
|
videos = "${HOME}/videos";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|