authelia: simplify override
This commit is contained in:
parent
aa6df3dde3
commit
49017f1acc
1 changed files with 3 additions and 5 deletions
|
@ -10,16 +10,14 @@ let
|
|||
in {
|
||||
services.authelia.instances.main = {
|
||||
enable = true;
|
||||
package = pkgs.authelia.override (p: {
|
||||
web = let
|
||||
orig_web = pkgs.callPackage "${pkgs.path}/pkgs/servers/authelia/web.nix" { inherit (p) nodejs pnpm fetchFromGitHub; };
|
||||
in orig_web.overrideAttrs (old: {
|
||||
package = pkgs.authelia.override {
|
||||
web = pkgs.authelia.passthru.web.overrideAttrs (old: {
|
||||
postPatch = old.postPatch + ''
|
||||
substituteInPlace src/views/LoginPortal/FirstFactor/FirstFactorForm.tsx \
|
||||
--replace-fail "const [rememberMe, setRememberMe] = useState(false)" "const [rememberMe, setRememberMe] = useState(true)"
|
||||
'';
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
environmentVariables.AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD_FILE = config.age.secrets.lldap-bind-user-pass.path;
|
||||
environmentVariables.AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE = config.age.secrets.authelia-smtp-password.path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue