From 9c828ea0e4b85ddc28baa1062470d2f80da32822 Mon Sep 17 00:00:00 2001 From: Kaare Hoff Skovgaard Date: Sat, 19 Jul 2025 22:07:07 +0200 Subject: [PATCH] Clarify some code --- .../nixos/infrastructure/vault-server-approle/unix-user.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/modules/nixos/infrastructure/vault-server-approle/unix-user.nix b/nix/modules/nixos/infrastructure/vault-server-approle/unix-user.nix index 7ab1b39..e713edb 100644 --- a/nix/modules/nixos/infrastructure/vault-server-approle/unix-user.nix +++ b/nix/modules/nixos/infrastructure/vault-server-approle/unix-user.nix @@ -6,7 +6,7 @@ }: let cfg = config.khscodes.infrastructure.vault-server-approle.enable; - userExists = username: builtins.hasAttr username config.users.users && config.users.users.enable; + userExists = username: (builtins.hasAttr username config.users.users) && config.users.users.enable; setKhsPassword = pkgs.writeShellApplication { name = "set-khs-password"; runtimeInputs = [