diff options
Diffstat (limited to 'modules/private/databases/mariadb.nix')
-rw-r--r-- | modules/private/databases/mariadb.nix | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/modules/private/databases/mariadb.nix b/modules/private/databases/mariadb.nix index 75ea747..101eb3f 100644 --- a/modules/private/databases/mariadb.nix +++ b/modules/private/databases/mariadb.nix | |||
@@ -121,9 +121,8 @@ in { | |||
121 | ''; | 121 | ''; |
122 | }; | 122 | }; |
123 | 123 | ||
124 | secrets.keys = [ | 124 | secrets.keys = { |
125 | { | 125 | "mysql/mysqldump" = { |
126 | dest = "mysql/mysqldump"; | ||
127 | permissions = "0400"; | 126 | permissions = "0400"; |
128 | user = "root"; | 127 | user = "root"; |
129 | group = "root"; | 128 | group = "root"; |
@@ -132,9 +131,8 @@ in { | |||
132 | user = root | 131 | user = root |
133 | password = ${cfg.credentials.root} | 132 | password = ${cfg.credentials.root} |
134 | ''; | 133 | ''; |
135 | } | 134 | }; |
136 | { | 135 | "mysql/pam" = { |
137 | dest = "mysql/pam"; | ||
138 | permissions = "0400"; | 136 | permissions = "0400"; |
139 | user = "mysql"; | 137 | user = "mysql"; |
140 | group = "mysql"; | 138 | group = "mysql"; |
@@ -146,9 +144,8 @@ in { | |||
146 | pam_filter ${filter} | 144 | pam_filter ${filter} |
147 | ssl start_tls | 145 | ssl start_tls |
148 | ''; | 146 | ''; |
149 | } | 147 | }; |
150 | { | 148 | "mysql/pam_replication" = { |
151 | dest = "mysql/pam_replication"; | ||
152 | permissions = "0400"; | 149 | permissions = "0400"; |
153 | user = "mysql"; | 150 | user = "mysql"; |
154 | group = "mysql"; | 151 | group = "mysql"; |
@@ -160,8 +157,8 @@ in { | |||
160 | pam_login_attribute cn | 157 | pam_login_attribute cn |
161 | ssl start_tls | 158 | ssl start_tls |
162 | ''; | 159 | ''; |
163 | } | 160 | }; |
164 | ]; | 161 | }; |
165 | 162 | ||
166 | security.pam.services = let | 163 | security.pam.services = let |
167 | pam_ldap = "${pkgs.pam_ldap}/lib/security/pam_ldap.so"; | 164 | pam_ldap = "${pkgs.pam_ldap}/lib/security/pam_ldap.so"; |