From 6f032bae9eaa66301f920d2ba43e7cd304ec0f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Mon, 17 Jan 2022 11:27:07 +0100 Subject: [PATCH] Add impure secrets --- .gitignore | 1 + config/services/gitea.nix | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..4114890f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +impure-secrets.nix \ No newline at end of file diff --git a/config/services/gitea.nix b/config/services/gitea.nix index af36d140..62313b40 100644 --- a/config/services/gitea.nix +++ b/config/services/gitea.nix @@ -1,4 +1,7 @@ { config, ... }: { + imports = [ + ../../impure-secrets.nix + ]; services.gitea = { enable = true; appName = "Lotte's Git"; @@ -20,7 +23,7 @@ storage = { STORAGE_TYPE = "minio"; MINIO_ENDPOINT = "minio.int.chir.rs:443"; - # minio credentials are exported in the environment + MINIO_ACCESS_KEY_ID = "gitea"; MINIO_BUCKET = "gitea"; MINIO_USE_SSL = "true"; };