From 4cea2574401fe6b6690085098dc8e96f84747205 Mon Sep 17 00:00:00 2001 From: Ramses <141248+R-VdP@users.noreply.github.com> Date: Mon, 31 Jan 2022 12:49:29 +0100 Subject: [PATCH] nixos/tmp: Fix format of /tmp mount options The mount options need to be passed as a comma-separated list of options so that they end up one a single Options line in the resulting mount unit. The current code passed the options as a list, resulting in several Options lines in the mount unit, all but the first of these were ignored by systemd however. This behaviour is not clearly defined in the systemd man page. --- nixos/modules/system/boot/tmp.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/tmp.nix b/nixos/modules/system/boot/tmp.nix index 6edafd6695b..cf6d19eb5f0 100644 --- a/nixos/modules/system/boot/tmp.nix +++ b/nixos/modules/system/boot/tmp.nix @@ -48,7 +48,12 @@ in what = "tmpfs"; where = "/tmp"; type = "tmpfs"; - mountConfig.Options = [ "mode=1777" "strictatime" "rw" "nosuid" "nodev" "size=${toString cfg.tmpOnTmpfsSize}" ]; + mountConfig.Options = concatStringsSep "," [ "mode=1777" + "strictatime" + "rw" + "nosuid" + "nodev" + "size=${toString cfg.tmpOnTmpfsSize}" ]; } ];