mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Desktop/Gaming] make shader cache path relative to $XDG_CACHE_HOME
This commit is contained in:
parent
4c71747514
commit
adab1f4179
2 changed files with 11 additions and 13 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue