[Desktop/Gaming] make shader cache path relative to $XDG_CACHE_HOME

This commit is contained in:
Antoine Viallon 2023-09-21 14:26:29 +02:00
parent 4c71747514
commit adab1f4179
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
2 changed files with 11 additions and 13 deletions

View file

@ -39,12 +39,6 @@ in {
};
graphics = {
shaderCache = {
path = mkOption {
description = "Where to put shader cache (currently only for NVidia)";
type = types.path;
default = "/var/tmp/shadercache";
example = "/tmp/shadercache";
};
cleanupInterval = mkOption {
description = "Interval for cache cleanup (tmpfiles.d format). Set to '-' to disable.";
type = types.str;
@ -55,6 +49,10 @@ in {
};
};
imports = [
(mkRemovedOptionModule [ "aviallon" "desktop" "graphics" "shaderCache" "path" ] "Now always relative to $XDG_CACHE_HOME" )
];
config = mkIf cfg.enable {
aviallon.network.backend = mkDefault "NetworkManager";