Steam,Auto,Onizuka, clean up home with XDG
This commit is contained in:
parent
ddb232fba9
commit
69ff1ae022
3 changed files with 17 additions and 8 deletions
|
|
@ -23,6 +23,8 @@
|
|||
|
||||
home.sessionVariables = {
|
||||
GRADLE_USER_HOME = "${config.xdg.dataHome}/gradle";
|
||||
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
||||
JULIA_DEPOT_PATH = "${config.xdg.dataHome}/julia:$JULIA_DEPOT_PATH";
|
||||
CUDA_CACHE_PATH = "${config.xdg.cacheHome}/nv";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
options.steam = {
|
||||
|
|
@ -11,6 +11,15 @@
|
|||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
package = pkgs.steam.override {
|
||||
extraBwrapArgs = [
|
||||
"--bind $XDG_STATE_HOME/FakeSteamHome $HOME"
|
||||
"--unsetenv XDG_CACHE_HOME"
|
||||
"--unsetenv XDG_CONFIG_HOME"
|
||||
"--unsetenv XDG_DATA_HOME"
|
||||
"--unsetenv XDG_STATE_HOME"
|
||||
];
|
||||
};
|
||||
};
|
||||
programs.gamemode.enable = lib.mkIf config.steam.gamemode true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -58,13 +58,11 @@
|
|||
|
||||
lf.enable = true;
|
||||
lf.hiddenfiles = [
|
||||
"${config.home.homeDirectory}/.librewolf"
|
||||
"${config.home.homeDirectory}/.nix-defexpr"
|
||||
"${config.home.homeDirectory}/.nix-profile"
|
||||
"${config.home.homeDirectory}/.nv"
|
||||
"${config.home.homeDirectory}/.pki"
|
||||
"${config.home.homeDirectory}/.steam*"
|
||||
"${config.home.homeDirectory}/.zshenv"
|
||||
"${config.home.homeDirectory}/.mozilla" # Unsupported
|
||||
"${config.home.homeDirectory}/.librewolf" # Unsupported
|
||||
"${config.home.homeDirectory}/.ssh" # openssh assumes
|
||||
"${config.home.homeDirectory}/.manpath" # man-db has it hardcoded
|
||||
"${config.home.homeDirectory}/.face" # caelestia-shell requires
|
||||
];
|
||||
zoxide.enable = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue