From 8f8da2a071d5247179df32c21761e61647d7441c Mon Sep 17 00:00:00 2001 From: Emelie Graven Date: Mon, 14 Feb 2022 12:29:36 +0100 Subject: [PATCH] Restructure DB config, add ssh keys --- config/common/users.nix | 3 +- config/hosts/grondahl/configuration.nix | 3 + .../hosts/grondahl/data/secrets/authentik_env | Bin 0 -> 907 bytes .../hosts/grondahl/data/secrets/email_noreply | Bin 83 -> 83 bytes .../hosts/grondahl/data/secrets/mobilizon_env | Bin 0 -> 1041 bytes .../hosts/grondahl/data/secrets/secrets.nix | Bin 716 -> 961 bytes .../grondahl/data/secrets/synapse_db_password | Bin 0 -> 87 bytes config/hosts/grondahl/services/containers.nix | 53 ++++++++++++++++++ config/hosts/grondahl/services/mail.nix | 29 ++++++++++ config/hosts/grondahl/services/nginx.nix | 10 ++++ config/hosts/grondahl/services/postgres.nix | 45 ++++++++++++--- config/hosts/grondahl/services/redis.nix | 11 ++++ config/hosts/grondahl/services/synapse.nix | 5 +- config/hosts/rudiger/services/postgres.nix | 13 +++-- 14 files changed, 155 insertions(+), 17 deletions(-) create mode 100644 config/hosts/grondahl/data/secrets/authentik_env create mode 100644 config/hosts/grondahl/data/secrets/mobilizon_env create mode 100644 config/hosts/grondahl/data/secrets/synapse_db_password create mode 100644 config/hosts/grondahl/services/containers.nix create mode 100644 config/hosts/grondahl/services/mail.nix create mode 100644 config/hosts/grondahl/services/redis.nix diff --git a/config/common/users.nix b/config/common/users.nix index 1f17e6b..6bc7138 100644 --- a/config/common/users.nix +++ b/config/common/users.nix @@ -6,8 +6,7 @@ extraGroups = [ "wheel" ]; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICO4LyBsW1YuUA6i3EL/IZhchSvk7reO4qgRmR/tdQPU emelie@flap" - "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFKHlANxRo9NEU6GHMCiAhv3Kxbxd6mOrOiMBw3bGohOAAAABHNzaDo= emelie@flap-fed" - "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIE7/U/Mk1jGofcommKmPfG+qwybiFH1nFkXzUqGiXSy/AAAABHNzaDo= emelie@thinky-fed" + "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIGRtSxLRqPWmsn161ybDFcMYxrBKhay5a485tlM8hQEuAAAABHNzaDo= emelie@thinky-fed" ]; }; diff --git a/config/hosts/grondahl/configuration.nix b/config/hosts/grondahl/configuration.nix index 2c929e1..6d317be 100644 --- a/config/hosts/grondahl/configuration.nix +++ b/config/hosts/grondahl/configuration.nix @@ -13,6 +13,9 @@ ./services/restic.nix ./services/synapse.nix ./services/postgres.nix + #./services/mail.nix + #./services/containers.nix + #./services/redis.nix ]; boot.loader.grub.enable = true; diff --git a/config/hosts/grondahl/data/secrets/authentik_env b/config/hosts/grondahl/data/secrets/authentik_env new file mode 100644 index 0000000000000000000000000000000000000000..52c163146482dc943e2f5964462dbafd62d91525 GIT binary patch literal 907 zcmV;619bcVM@dveQdv+`05PXQQ_^Tytk79=MhQ7hX_B;)>>*NP+>`L_dbr!i{|RE2 z5TdwT%^|>Hi53P{xErDpx*PU^L0fZFIv}9yfRYYp)#~^Pfu`o{BP7fHJ zv1_Ie&=yC*k90m(k%xJ>uE1Yspv;NZx$HBXz_JZ@|rJ}?&5*E z0%d(LhEfGtOP$FqZ7kYS0O*#AL>INOBW39768z1#uJ~LpJ?!K)$(H7lw10!o?BK|u zfFvWaIzviwSo9eG_8vwpikQN1@($tp8|@$jJk^|i{mV*yrzHn>0CXVR*#cear=XAY zMf7_w?1r?xu(eF|@4%aw@NF&fyJ`(pC5#r1>UFeQL{ezp&V5(aHgV(&q;Q9hRnZW1 zYHXKe5Iad*1`{fXNm$6^nFCkkhUNP2vv?Z6ong@kU|!u_fu)x$Wf|A%m-FPjC{Px9 zVGG7+*~D8Z%q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{5mI&sLa8=^!lnRf!=q5A25i9%eeQ8;Um zZBxggynkvSv2h_a!zPJl&zqdQKs|5<0Bygo88Ctqa(ilmpQ8-uv;W16x~d#rQMFW4 z!>^d)P7BUd4M>@!XBCPH2iV=BLbwZE(@Qd-m5%-T@F{yl+;FQ2>c9P1~xD?6@Y LF1XQTF?F73LqrW2 literal 0 HcmV?d00001 diff --git a/config/hosts/grondahl/data/secrets/secrets.nix b/config/hosts/grondahl/data/secrets/secrets.nix index 89f5c0189c4ec860b213ee2cb7fbf3083cab9735..2b87a11d869139930add82ebfe871e322cc9bcd0 100644 GIT binary patch literal 961 zcmV;y13vr!M@dveQdv+`0R0Anu&bv5ciJ36+NIfw#$KuRCaw&1AofW_2z2S#XsGkF zf4vg3>?E+e4Jtu={GE+9iJfz5gu@(`CxCVk%lh2*en5+d=$y30es;H` z`gHix-U0{%*Ok2hmz#?x&Ycb$dvSf-AhLOKXKHrO+M&TNov6z`F}ri)nZ~(9CNZ26$R2XkRRk4d^x*HIRU-_)grM0=Qp?r6w{eeW z!2&9FIa7ypJ)UU!86UfQxqu@)&-_g6$JjNFe%L%Jh1B}?E+yL_z;3md2%w`!i?j{} z5G2^s+K75VyI4Xu%v4(hv+;3A;qeZar?h6Iz6X|`%+zTq@b}Pyhw*ec3uo`TEGt@XBBY8dcroo>fKabgO1~SD1yUhokU*A=QSEW^jWrn8Dv1 zFU~b4)d>18Y}iF$7fWFPEmiGRtjtm3u3z36ju{Hw^TCtHeTs#pt2)p=X&|kCy?o^x z^h9_?c{?LYd)@mwk7f10qHG^a0zYut9=&pE`2X9V2*{N?SVxp{i*I{YFlYj0z{IX< zuCq{6CxM?zm4{(bWbyc$F;cNm0n)EHT2^}|1%+<@9(8O%G!FfC;?x}q=;ppZXT|&1 z8%Z`zP;*xq*>>7?80jB7nW&MC{PSkT?%gUu>`s*`CXkJMB?TW z+YN>fom+EZBc8X#Ffij5kpx!`)MparSXi37e%x*>r>TqSieHB!C_!jYQvXZJ8{Zyk zJY89@H*IUja#IZ|b5rnjzQeGQLO;s$D%pVQaVU}5fu3-;6(XMBk|Lk)*x!^Lc+J7h4_RyXu{?ptbM>B=;i0rtMtl3sxnB2M?ae&W;Q~UlE5W0pq+pM)PHc4?H*lElUYAfRJ!na zMu`^f6|PL%6C0QDIgB~NYH_O#Tm{}}7OP=1dmMS=lu)v)?aN6I*XiM8B}1gl!Yje$ zj6o75<~m38g`Lu5$I6)#oZ!XKxWtkY*W@wr=&NvmcW5}P%}*YbUoVN1VEkbg_5xYH z9V^UN5;1^vo7-v3o}l?mhn4fgLE3bHw0U6yM+ISQMME{$Ue3llh_$laPZeNp15TK1 z!G`dKxNrl>s#X_lw5l@U?~gwjLEUJ}lsW*gI%tH6nk8EBBvpc3?zRgZIC1jOmt@NM zE6g#5;3X67+DCI+Dw<}ZQ3lWxNW4dvis9p+9`YEYL4Th&7z`=^_pYRytm0(vlRPRu z{c$Ep0#|vvQ8ba+wHk*(ZF|X;GYHdslekVJ%EG%p#X2mb@$%|R>YAQ2Kb9kpfU}rY zGq-{8E*nT*I#y0m{v139&GuyoLI7?Em3!_ y#!bomxBN(8HBOH-5usA!hg2wr6gqInx$y>6QXaIbJ|HVnTwj7Ru=}e@3?Bb87h2Z< diff --git a/config/hosts/grondahl/data/secrets/synapse_db_password b/config/hosts/grondahl/data/secrets/synapse_db_password new file mode 100644 index 0000000000000000000000000000000000000000..c2cd71a63320dc7ed02275b19236d533922d8808 GIT binary patch literal 87 zcmV-d0I2@}M@dveQdv+`0Bnn$Xa>+}R`O(rfZoWyfev@rB>h6&jE`aBMGqC