From 160dd14d55a8389dd764105e5c7743c1c1a15be0 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Fri, 20 Dec 2024 19:08:07 -0500 Subject: [PATCH] Move secrets to system only --- .gitattributes | 2 +- modules/extras/variables/default.nix | 1 - modules/system/default.nix | 1 + .../variables => system}/secrets/default.nix | Bin .../system/services/server/nginx/rtmp/default.nix | 4 ++++ 5 files changed, 6 insertions(+), 2 deletions(-) rename modules/{extras/variables => system}/secrets/default.nix (100%) diff --git a/.gitattributes b/.gitattributes index 18b7efb..84f7963 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -modules/extras/variables/secrets/** filter=git-crypt diff=git-crypt +modules/system/secrets/** filter=git-crypt diff=git-crypt diff --git a/modules/extras/variables/default.nix b/modules/extras/variables/default.nix index 0c75a33..65bd9c9 100644 --- a/modules/extras/variables/default.nix +++ b/modules/extras/variables/default.nix @@ -5,7 +5,6 @@ ./domains ./ips ./look - ./secrets ./workspaces ]; } diff --git a/modules/system/default.nix b/modules/system/default.nix index 736cae0..b3b2dd7 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -5,6 +5,7 @@ ./devices ./options ./programs + ./secrets ./services ./settings ../extras diff --git a/modules/extras/variables/secrets/default.nix b/modules/system/secrets/default.nix similarity index 100% rename from modules/extras/variables/secrets/default.nix rename to modules/system/secrets/default.nix diff --git a/modules/system/services/server/nginx/rtmp/default.nix b/modules/system/services/server/nginx/rtmp/default.nix index 547b327..27665d1 100644 --- a/modules/system/services/server/nginx/rtmp/default.nix +++ b/modules/system/services/server/nginx/rtmp/default.nix @@ -24,4 +24,8 @@ } ''; }; + + systemd.services.nginx.serviceConfig = { + ReadWritePaths = [ "/var/www/Jimbo-Landing-Page/streams/hls/" ]; + }; }