Skip to content

Commit

Permalink
[nixos/server] place /tmp as a whole on disk until nixos-rebuild allo…
Browse files Browse the repository at this point in the history
…ws to set the build dir
  • Loading branch information
pSub committed Mar 13, 2024
1 parent 4162575 commit 8096b36
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nixos/server/modules/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@

boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/dfb8a329-404f-4c38-9637-959165f66bc0";

fileSystems."/build" =
# Mount whole /tmp on disk as long as it is not possible to modify the build dir of nixos-rebuild
# see https://github.com/NixOS/nixpkgs/issues/293114
fileSystems."/tmp" =
{
device = "/nix/persist/build";
device = "/nix/persist/tmp";
fsType = "none";
options = [ "bind" ];
};
Expand Down

0 comments on commit 8096b36

Please sign in to comment.