nixpkgs-suyu/nixos
talyz 5010f4fff9
nixos/keycloak: Use LoadCredential to load secrets
Use systemd's LoadCredential mechanism to make the secret files
available to the service.

This gets rid of the privileged part of the ExecPreStart script which
only served to copy these files and assign the correct
permissions. There's been issues with this approach when used in
combination with DynamicUser, where sometimes the user isn't created
before the ExecPreStart script runs, causing the error

install: invalid user ‘keycloak’

This should fix that issue.

Unfortunately, all of the ExecPreStart script had to be moved to
ExecStart, since credentials aren't provided to ExecPreStart. See
https://github.com/systemd/systemd/issues/19604.
2022-01-17 11:46:51 +01:00
..
doc Merge pull request #145767 from midchildan/fix/noto-cjk 2022-01-17 11:23:40 +01:00
lib Merge pull request #151082 from hercules-ci/nixos-cleanup-vmWithBootLoader 2022-01-14 18:49:27 +01:00
maintainers
modules nixos/keycloak: Use LoadCredential to load secrets 2022-01-17 11:46:51 +01:00
tests nixos/rstudio-server: init 2022-01-17 10:24:38 +11:00
COPYING
default.nix nixos: Make system.build.vm a standard attribute based on vmVariant 2021-12-17 14:49:31 +01:00
README
release-combined.nix
release-small.nix
release.nix

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.