diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-02-11 15:36:27 +0100 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-02-11 15:36:27 +0100 |
| commit | f373e772781c9d1cdbe2f97ef3791a7b41ac0657 (patch) | |
| tree | 7087dc65362f37b0ef6b85ac9e46a66fc491af1a /services/mysql.nix | |
| parent | 04707c728441000d64d3d750916354310ff2d2ab (diff) | |
Nixfmt
Diffstat (limited to 'services/mysql.nix')
| -rw-r--r-- | services/mysql.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/services/mysql.nix b/services/mysql.nix index 06edfcb..1c0a785 100644 --- a/services/mysql.nix +++ b/services/mysql.nix @@ -26,7 +26,9 @@ let ALTER USER IF EXISTS '${name}'@'${ucfg.host}' IDENTIFIED BY '${ucfg.sopsPlaceholder}'; CREATE USER IF NOT EXISTS '${name}'@'${ucfg.host}' IDENTIFIED BY '${ucfg.sopsPlaceholder}'; '' - + (lib.concatMapAttrsStringSep "\n" (priviledge_clause "'${name}'@'${ucfg.host}'") (create_users_ensure name)) + + (lib.concatMapAttrsStringSep "\n" (priviledge_clause "'${name}'@'${ucfg.host}'") ( + create_users_ensure name + )) ) else " -- Ommitted user ${name}"; @@ -84,10 +86,10 @@ in allowedRanges = mkOption { type = types.listOf types.str; }; - host = mkOption { - type = types.str; - default = "%"; - }; + host = mkOption { + type = types.str; + default = "%"; + }; }; } ); |
