nixos/userborn: create passwordFilesLocation before userborn run if not /etc

This commit is contained in:
Lan Tian
2024-12-22 00:05:50 -08:00
parent 9e054af7f6
commit 4919e4cd1c
+1 -1
View File
@@ -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}"
])