From 79ed68cd043effc04bbd68d0510eb7a6442eb170 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Mon, 26 Aug 2024 20:45:07 -0400 Subject: [PATCH] Testing Icecast maybe --- nixos/desktop.nix | 3 +++ nixos/modules/secrets.nix | Bin 1550 -> 1615 bytes nixos/server.nix | 5 +++-- nixos/server/icecast.nix | 24 ++++++++++++++++++++++++ nixos/users/groups.nix | 6 ++++++ 5 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 nixos/server/icecast.nix create mode 100644 nixos/users/groups.nix diff --git a/nixos/desktop.nix b/nixos/desktop.nix index 98cf6d3..ce9eae8 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -2,7 +2,10 @@ imports = [ # Base configs ./modules/base.nix + + # Import users and groups ./users/jimbo.nix + ./users/groups.nix # Desktop only ./desktop/misc.nix diff --git a/nixos/modules/secrets.nix b/nixos/modules/secrets.nix index 31679f8578230f4df46b249f481714092d6046f7..27f416efcfe8e5432ae302e496b32f4b8b050371 100644 GIT binary patch literal 1615 zcmV-V2C(@6M@dveQdv+`0J~U+lbo|m<+I(5`rCT`)Rm(~kL{0#-UPIs>bH_M(cJmyE8ie`7DUTf~b) zRYxU^HYoknWa`*oNKa-(6qFD}?-z%3PX<c5z?ZqzYv6jdUKlqZ7+F zDWXfoMPHIwmmy@R{gQn)qGTo38CCNQ80kS6M$m*>^7FMLyAjOE)XdTW6%g~Li}t5y z%aQwa&o4-9tP+lszmETyc(^s{OX4ZJHT(+P4U(;VCevplZLYp*%DbPQ73P$;y&nQ3;nzWo` zq(AtEzYU{aLL1-LHYghh&;OKY*3G1Ny6npp!=b7bZDf~wn0NT53gZYtT4Rtz(-~yq z#C#;kI+0~i6(Vwph|Seg(2eb2R6Ub@CKz3hc#jA*CrJIAUj@>Hnd5exAWq_2pEZoN z%DKre0mBZju_>XiMq*TEE74NEKgAnj=d_7`lcUw#As^5}jSMTTZ^?(^f-Qzs~jHP|)b8)vdeM#-m)3UL-ayMF;*4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2s4-W3q^a2C2H_w}6dRsF~JUdT;qe{n@f<%Uz$bSUo59Mi;LpBx9%ECJH$YMF%7};pY0sLwNAYKX2Y&7yxw_#lwj4~O z4!3vy|^;o?lF$x~iPHB`-i|JQ*woeDYMggth@*)0^3*8J8J+J&cH7dkX|%qi@w#bd-r z9CX0&uVmZ^1UADxrK!i7q9u04w`z3jCBB$tQcPmrW4kB(f+DTLD}T07;s*rOw)!PV zHcr_@gv+YsCL!u9#>4Z-Ptt6sCOoTQNyob(HO>lJy|ln|+6!4H42l?^G+LGm<{@R) zmCzA2iz|c*IM2DeXeEyn09YFCOuY9BquBAS&JwtZWL8x~w=PSXh5G9mw6mZigxfeMk ztDIK}4#EisQi~D%iN*N`NBGZ71(54GB6*wN^oS(uN-iH7nOG;%_M(E@FHFO7l}ojUPiG%QZ$s>}S10!gKAkWy1te7v8|dN1gDuq5>qJ zuX$siRfIEO9e<{>^UHEo$!!JQB00x!q%>a?+GP;$)_$|iV?K-#neV~yObngaueDpj zx}^1NiI`Zig<=*P^Km6`9?$<(Lb*-$^B{NI6Hj{&Q&6Ss{nyoKk$io^i)nr)>0yR9 z>PMX`fF>k+hM{`ZCjmRN{UyN#$VUQGIGKWQ5gUtCACW6ms}u&E+YWVIl@UJVdZ^F% A1^@s6 diff --git a/nixos/server.nix b/nixos/server.nix index 23777f4..df3a8d2 100644 --- a/nixos/server.nix +++ b/nixos/server.nix @@ -2,11 +2,12 @@ imports = [ # Base configs ./modules/base.nix - ./users/jimbo.nix - # Import more users + # Import users and groups + ./users/jimbo.nix ./users/nextcloud.nix ./users/nginx.nix + ./users/groups.nix # Modules ./modules/security.nix diff --git a/nixos/server/icecast.nix b/nixos/server/icecast.nix new file mode 100644 index 0000000..e3d81f0 --- /dev/null +++ b/nixos/server/icecast.nix @@ -0,0 +1,24 @@ +let + secrets = import ../modules/secrets.nix; +in { + # Icecast, replacing Azuracast maybe + services = { + icecast = { + enable = true; + listen.port = 265; + hostname = "icecast.${secrets.jimDomain}"; + admin = { + user = "jimbo"; + password = "${secrets.castPass}"; + }; + }; + nginx.virtualHosts."icecast.${secrets.jimDomain}" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:265"; + proxyWebsockets = true; + }; + }; + }; +} diff --git a/nixos/users/groups.nix b/nixos/users/groups.nix new file mode 100644 index 0000000..334f839 --- /dev/null +++ b/nixos/users/groups.nix @@ -0,0 +1,6 @@ +{ + # Define custom groups + users.groups = { + nfsShare = {}; + }; +}