From ceb54bc2a7741b7ea87d70e97585d0a640797891 Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Mon, 29 Jul 2024 12:46:13 +0200 Subject: [PATCH] nixos/gollum: format with nixfmt --- nixos/modules/services/misc/gollum.nix | 36 ++++++++++++++++++++------ 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/nixos/modules/services/misc/gollum.nix b/nixos/modules/services/misc/gollum.nix index 863945244502..fb9b9e19813f 100644 --- a/nixos/modules/services/misc/gollum.nix +++ b/nixos/modules/services/misc/gollum.nix @@ -1,4 +1,9 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: with lib; @@ -9,7 +14,11 @@ in { imports = [ (mkRemovedOptionModule - [ "services" "gollum" "mathjax" ] + [ + "services" + "gollum" + "mathjax" + ] "MathJax rendering might be discontinued in the future, use services.gollum.math instead to enable KaTeX rendering or file a PR if you really need Mathjax" ) ]; @@ -42,13 +51,23 @@ in }; allowUploads = mkOption { - type = types.nullOr (types.enum [ "dir" "page" ]); + type = types.nullOr ( + types.enum [ + "dir" + "page" + ] + ); default = null; description = "Enable uploads of external files"; }; user-icons = mkOption { - type = types.nullOr (types.enum [ "gravatar" "identicon" ]); + type = types.nullOr ( + types.enum [ + "gravatar" + "identicon" + ] + ); default = null; description = "Enable specific user icons for history view"; }; @@ -116,9 +135,7 @@ in users.groups."${cfg.group}" = { }; - systemd.tmpfiles.rules = [ - "d '${cfg.stateDir}' - ${cfg.user} ${cfg.group} - -" - ]; + systemd.tmpfiles.rules = [ "d '${cfg.stateDir}' - ${cfg.user} ${cfg.group} - -" ]; systemd.services.gollum = { description = "Gollum wiki"; @@ -154,5 +171,8 @@ in }; }; - meta.maintainers = with lib.maintainers; [ erictapen bbenno ]; + meta.maintainers = with lib.maintainers; [ + erictapen + bbenno + ]; }