From 0d51f36b2a2e6aa1bd182b5f81c82f274e42c52f Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 24 Apr 2024 15:50:56 +0200 Subject: [PATCH] fix: netbird secret and inotify --- config/services/netbird.nix | 6 ++++-- hosts/elisabeth/fs.nix | 2 ++ .../secrets/netbird/generated/dataEnc.age | Bin 795 -> 704 bytes 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/services/netbird.nix b/config/services/netbird.nix index 57f8b23..3112772 100644 --- a/config/services/netbird.nix +++ b/config/services/netbird.nix @@ -15,11 +15,13 @@ age.secrets.coturnSecret = { generator.script = "alnum"; - group = "netbird"; + owner = "turnserver"; }; age.secrets.dataEnc = { - generator.script = "alnum"; + generator.script = {pkgs, ...}: '' + ${lib.getExe pkgs.openssl} rand -base64 32 + ''; group = "netbird"; }; diff --git a/hosts/elisabeth/fs.nix b/hosts/elisabeth/fs.nix index c1f6d00..f41123d 100644 --- a/hosts/elisabeth/fs.nix +++ b/hosts/elisabeth/fs.nix @@ -65,6 +65,8 @@ }; }; + boot.kernel.sysctl."fs.inotify.max_user_instances" = 1024; + services.zrepl = { enable = true; settings = { diff --git a/hosts/elisabeth/secrets/netbird/generated/dataEnc.age b/hosts/elisabeth/secrets/netbird/generated/dataEnc.age index d41e96335f6d27fff4101942fa56fbcd6f66dbc0..50285f2c1e6e4eb335b3d346b7caf0450280ae3f 100644 GIT binary patch literal 704 zcmZwCJ&V&|007`o$)G4Wi4brRLQRtf-2m zqqsN-;tg(!cQ^UWIJBl@+;TdPBwa@>qaO}gl*P+hr=%l)s6s7}Mk}EqE}FWN zIw6>j@?>6!iR$`tK}=G_#T;s~6l>K`lQA35@_GWt%!p~5n(oXJPVUlXuG-^vOE_iO zqBoZ|C|lI|0Vd!}MkoC&Rg_I@y=biZ+zi9>ff?9V!gHE#&P#ob7-10h^2pdgI=06O9`8mqR+6?8)$r8FA^!jJa3+v4 zUf>x}0A3=pwud);eA4~-t@IwFq literal 795 zcmY+?NQ<9{As{0@R2J({hufzz9H>P7_V|N-Ikfw0iVI5;d#n^O2c?{_WVYP4 zfK9Pkn`Q(85j>ogtHO0AEt@a_x?G19ZuFLzY&m^}C-unJmN;B;uyeus|0*@#&1a^l z1q2V6h?Hdv<-JL4*({9rK(H!HkJI>&nPVgxmbiv{`+-kW)Y@AbJ9o#-f_@d1p^6RT zls4ycoRO8ebZ+_Pq#5MCSNIJb7wMB5$ONEkJCKAeCJiE0hJtL!9B(fyKGH?)pxNwL zSrFvRoyUAUSh>N#S*S58)+TVr!`>7r1(bL81T zn02RSv!!koIcunkRT+cCD&{ge%B2;om0C?b(m=kyJ>h@7+JYz7ZW`CG{J#20f2y4w zzFa!G^7!n>>rHg*JXb#cJU+VzF5kYZ-+Fqv{p`<&7pL0khtqG(M-Luw##is}!*?%N N_tW=p-h4iq`~%)-2|WM+