feat(nix): use disk for nix cache
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
e11914aa08
commit
4a2ba58cd4
1 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,13 @@
|
||||||
|
|
||||||
boot.tmp.useTmpfs = true;
|
boot.tmp.useTmpfs = true;
|
||||||
|
|
||||||
|
systemd.services.nix-daemon = {
|
||||||
|
environment.TMPDIR = "/run/nix-cache";
|
||||||
|
preStart = ''
|
||||||
|
mkdir -p ${config.systemd.services.nix-daemon.environment.TMPDIR}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixVersions.nix_2_22;
|
package = pkgs.nixVersions.nix_2_22;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue