File tree Expand file tree Collapse file tree 2 files changed +27
-27
lines changed Expand file tree Collapse file tree 2 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ with lib;
266266
267267 services . mysql =
268268 let
269- services = [ ] ;
269+ services = [ ] ;
270270 in
271271 {
272272 enable = true ;
@@ -283,14 +283,14 @@ with lib;
283283 } ;
284284 } )
285285 services
286- ) ++ [
287- {
288- name = "mysql" ;
289- ensurePermissions = {
290- "*.*" = "ALL PRIVILEGES" ;
291- } ;
292- }
293- ] ;
286+ ) ++ [
287+ {
288+ name = "mysql" ;
289+ ensurePermissions = {
290+ "*.*" = "ALL PRIVILEGES" ;
291+ } ;
292+ }
293+ ] ;
294294 settings . mysqld = {
295295 "character_set_server" = "utf8mb4" ;
296296 "collation_server" = "utf8mb4_general_ci" ;
Original file line number Diff line number Diff line change 134134 } ;
135135
136136 users . users =
137- (
138- mapListToAttrs
139- ( host : {
140- name = host ;
141- value = {
137+ (
138+ mapListToAttrs
139+ ( host : {
140+ name = host ;
141+ value = {
142+ isNormalUser = true ;
143+ shell = pkgs . bashInteractive ;
144+ home = "/backup/${ host } " ;
145+ openssh . authorizedKeys . keyFiles = [ config . nzbr . foreignAssets . ${ host } . "ssh/permafrost.pub" ] ;
146+ } ;
147+ } )
148+ ( filter
149+ ( host : config . nzbr . foreignAssets . ${ host } ? "ssh/permafrost.pub" )
150+ ( builtins . attrNames config . nzbr . foreignAssets )
151+ )
152+ ) // {
153+ pulsar = {
142154 isNormalUser = true ;
143155 shell = pkgs . bashInteractive ;
144- home = "/backup/${ host } " ;
145- openssh . authorizedKeys . keyFiles = [ config . nzbr . foreignAssets . ${ host } . "ssh/permafrost.pub" ] ;
156+ home = "/backup/pulsar" ;
146157 } ;
147- } )
148- ( filter
149- ( host : config . nzbr . foreignAssets . ${ host } ? "ssh/permafrost.pub" )
150- ( builtins . attrNames config . nzbr . foreignAssets )
151- )
152- ) // {
153- pulsar = {
154- isNormalUser = true ;
155- shell = pkgs . bashInteractive ;
156- home = "/backup/pulsar" ;
157158 } ;
158- } ;
159159
160160 environment . systemPackages = with pkgs ; [
161161 borgbackup
You can’t perform that action at this time.
0 commit comments