19 lines
384 B
Nix
19 lines
384 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf (config.impermanence.enable) {
|
|
home.persistence."/persist/home" = {
|
|
directories = [
|
|
"desktop"
|
|
"downloads"
|
|
"documents"
|
|
];
|
|
files = [
|
|
".bash_history" # keep shell history around
|
|
"${config.xdg.dataHome}/recently-used.xbel" # gnome recently viewed files
|
|
];
|
|
};
|
|
};
|
|
}
|