diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-04-12 21:37:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 21:37:47 +0200 |
commit | 603320b64f27d8ebd629639f85cec642e051bbd0 (patch) | |
tree | e0b1bd0497640717d07551fa4c510a5642dd25a2 /nixos/modules/virtualisation | |
parent | 6152b09a6ac17eabb5e72e2868a392b8aaac4cc7 (diff) | |
parent | 3a5de0e7258d249a36fc29f0bb2a55f40b211a45 (diff) |
Merge pull request #204534 from SuperSandro2000/boot-tmp
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/qemu-vm.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index a55a21a46a538..89772019284cb 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -1069,12 +1069,12 @@ in fsType = "ext4"; autoFormat = true; }); - "/tmp" = lib.mkIf config.boot.tmpOnTmpfs { + "/tmp" = lib.mkIf config.boot.tmp.useTmpfs { device = "tmpfs"; fsType = "tmpfs"; neededForBoot = true; # Sync with systemd's tmp.mount; - options = [ "mode=1777" "strictatime" "nosuid" "nodev" "size=${toString config.boot.tmpOnTmpfsSize}" ]; + options = [ "mode=1777" "strictatime" "nosuid" "nodev" "size=${toString config.boot.tmp.tmpfsSize}" ]; }; "/nix/${if cfg.writableStore then ".ro-store" else "store"}" = lib.mkIf cfg.useNixStoreImage { device = "${lookupDriveDeviceName "nix-store" cfg.qemu.drives}"; |