diff --git a/nixos/modules/tmproot.nix b/nixos/modules/tmproot.nix index b9d4d46..ef2706e 100644 --- a/nixos/modules/tmproot.nix +++ b/nixos/modules/tmproot.nix @@ -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" diff --git a/nixos/modules/user.nix b/nixos/modules/user.nix index 534d886..ed78856 100644 --- a/nixos/modules/user.nix +++ b/nixos/modules/user.nix @@ -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" ]; }; };