From c4a5ef0c4a15fa9179a247fa425f68e9d2e633d2 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 11 Mar 2025 18:41:54 +0100 Subject: [PATCH] nixos/heimdal: correctly handle multitarget principals --- nixos/modules/services/system/kerberos/heimdal.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/system/kerberos/heimdal.nix b/nixos/modules/services/system/kerberos/heimdal.nix index 4c1df2088ae3..0965c6c5385a 100644 --- a/nixos/modules/services/system/kerberos/heimdal.nix +++ b/nixos/modules/services/system/kerberos/heimdal.nix @@ -21,7 +21,10 @@ let target, ... }: - "${principal}\t${lib.concatStringsSep "," (lib.toList access)}\t${target}" + if target != "*" && target != "" then + "${principal}\t${lib.concatStringsSep "," (lib.toList access)}\t${target}" + else + "${principal}\t${lib.concatStringsSep "," (lib.toList access)}" ) acl )) (lib.mapAttrsToList (