nixos/tmproot: Persist Nix cache

This commit is contained in:
Jack O'Sullivan 2022-06-17 23:15:39 +01:00
parent 2998dc7bff
commit c59c911e2f
2 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,8 @@ in
# Also the script runs before impermanence does.
"/var/lib/nixos"
"/var/lib/systemd"
{ directory = "/root/.cache/nix"; mode = "0700"; }
];
files = [
"/etc/machine-id"

View File

@ -76,6 +76,8 @@ in
# Persist all of fish; it's not easy to persist just the history fish won't let you move it to a different
# directory. Also it does some funny stuff and can't really be a symlink it seems.
"/home/${user'.name}/.local/share/fish"
"/home/${user'.name}/.cache/nix"
];
};
};