22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-18 13:46:03 +02:00

home-assistant: fix ldap login script

This commit is contained in:
Sandro - 2023-11-12 21:41:41 +01:00
parent fc4ce1c439
commit 4292e4b978
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -52,7 +52,7 @@ in
};
installPhase = ''
install -Dm755 ldap-auth-sh $out
install -Dm755 ldap-auth.sh -t $out/bin
'';
solutions.default = {
@ -60,9 +60,9 @@ in
inputs = with pkgs; [ coreutils curl gnugrep gnused openldap ];
interpreter = "${pkgs.bash}/bin/bash";
keep."source:$CONFIG_FILE" = true;
scripts = [ "." ];
scripts = [ "bin/ldap-auth.sh" ];
};
};
}+ "/bin/ldap-auth.sh";
args = [
# https://github.com/bob1de/ldap-auth-sh/blob/master/examples/home-assistant.cfg
(pkgs.writeText "config.cfg" /* shell */ ''