Skip to content

Commit 02421cd

Browse files
committed
refactor: authelia settings
1 parent 50e6a57 commit 02421cd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

modules/authelia/default.nix

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ in {
179179
};
180180
settings = lib.mkOption {
181181
type = yaml.type;
182-
apply = yaml.generate "configuration.yml";
182+
183183
description = ''
184184
Additional Authelia settings. Will be provided in the `configuration.yml`.
185185
'';
@@ -292,10 +292,7 @@ in {
292292
password_reset.disable = lib.mkDefault true;
293293
password_change.disable = lib.mkDefault true;
294294
};
295-
access_control.default_policy =
296-
if ((cfg.settings.access_control.rules or []) != [])
297-
then (lib.mkDefault "deny")
298-
else (lib.mkDefault cfg.defaultAllowPolicy);
295+
299296
notifier.filesystem.filename = "/notifier/notification.txt";
300297
session =
301298
{
@@ -363,7 +360,7 @@ in {
363360
{
364361
data = "${storage}/db:/data";
365362
notifier = "${storage}/notifier:/notifier";
366-
settings = "${cfg.settings}:/config/configuration.yml";
363+
settings = "${yaml.generate "configuration.yml" cfg.settings}:/config/configuration.yml";
367364
}
368365
// lib.optionalAttrs oidcEnabled {
369366
rsaKey = "${cfg.oidc.jwksRsaKeyFile}:/secrets/oidc/jwks/rsa.key";

0 commit comments

Comments
 (0)