Persist persistent_settings.dat on steam deck.
This commit is contained in:
@@ -16,6 +16,12 @@
|
||||
example = [ ".local/share/dolphin-emu/Wii" ];
|
||||
description = "List of folders relative to the home directory to persist.";
|
||||
};
|
||||
persist.files = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ ];
|
||||
example = [ ".local/share/foo.sqlite3" ];
|
||||
description = "List of files relative to the home directory to persist.";
|
||||
};
|
||||
state.directories = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ ];
|
||||
@@ -50,6 +56,11 @@
|
||||
);
|
||||
};
|
||||
})
|
||||
(lib.mkIf (config.me.persist.files != [ ]) {
|
||||
home.persistence."/home/deck/.persist" = {
|
||||
files = config.me.persist.files;
|
||||
};
|
||||
})
|
||||
(lib.mkIf (config.me.state.directories != [ ]) {
|
||||
home.persistence."/home/deck/.state" = {
|
||||
directories = (
|
||||
|
||||
Reference in New Issue
Block a user