persist the root nix cache and bash history
This commit is contained in:
parent
ad0485e46d
commit
2d886aa739
1 changed files with 4 additions and 0 deletions
|
@ -10,4 +10,8 @@
|
||||||
neededForUsers = true;
|
neededForUsers = true;
|
||||||
sopsFile = ./password.yaml;
|
sopsFile = ./password.yaml;
|
||||||
};
|
};
|
||||||
|
environment.persistence."/persistent" = {
|
||||||
|
directories = ["/root/.cache/nix"]; # for sanity
|
||||||
|
files = ["/root/.bash_history"];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue