diff --git a/nixos/modules/services/networking/anubis.nix b/nixos/modules/services/networking/anubis.nix index 745dc9719906..2d63fa4ecc59 100644 --- a/nixos/modules/services/networking/anubis.nix +++ b/nixos/modules/services/networking/anubis.nix @@ -122,12 +122,6 @@ let example = "tcp"; type = types.str; }; - SOCKET_MODE = mkDefaultOption "settings.SOCKET_MODE" { - default = "0770"; - description = "The permissions on the Unix domain sockets created."; - example = "0700"; - type = types.str; - }; DIFFICULTY = mkDefaultOption "settings.DIFFICULTY" { default = 4; description = '' @@ -146,6 +140,26 @@ let ''; type = types.bool; }; + OG_PASSTHROUGH = mkDefaultOption "settings.OG_PASSTHROUGH" { + default = false; + description = '' + Whether to enable Open Graph tag passthrough. + + This enables social previews of resources protected by + Anubis without having to exempt each scraper individually. + ''; + type = types.bool; + }; + WEBMASTER_EMAIL = mkDefaultOption "settings.WEBMASTER_EMAIL" { + default = null; + description = '' + If set, shows a contact email address when rendering error pages. + + This email address will be how users can get in contact with administrators. + ''; + example = "alice@example.com"; + type = types.nullOr types.str; + }; # generated by default POLICY_FNAME = mkDefaultOption "settings.POLICY_FNAME" {