From 4919e4cd1c5d40e66697e8ecc5a21770e2d8add7 Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Sun, 22 Dec 2024 00:05:35 -0800 Subject: [PATCH] nixos/userborn: create passwordFilesLocation before userborn run if not /etc --- nixos/modules/services/system/userborn.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/system/userborn.nix b/nixos/modules/services/system/userborn.nix index bd3f2175b128..4d72229573ee 100644 --- a/nixos/modules/services/system/userborn.nix +++ b/nixos/modules/services/system/userborn.nix @@ -141,7 +141,7 @@ in ExecStart = "${lib.getExe cfg.package} ${userbornConfigJson} ${cfg.passwordFilesLocation}"; ExecStartPre = lib.mkMerge [ - (lib.mkIf (!config.system.etc.overlay.mutable) [ + (lib.mkIf (cfg.passwordFilesLocation != "/etc") [ "${pkgs.coreutils}/bin/mkdir -p ${cfg.passwordFilesLocation}" ])