1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Move acme env file to its own directory

This commit is contained in:
RGBCube 2024-04-30 18:06:37 +03:00
parent 6c1bdaaec4
commit a788e9b955
No known key found for this signature in database
7 changed files with 10 additions and 8 deletions

View file

@ -1,15 +1,15 @@
{ self, config, lib, ... }: with lib;
{ config, lib, ... }: with lib;
let
inherit (config.networking) domain;
in systemConfiguration {
secrets.acmePassword.file = self + /hosts/password.acme.age;
secrets.acmeEnvironment.file = ./environment.age;
security.acme = {
acceptTerms = true;
defaults = {
environmentFile = config.secrets.acmePassword.path;
environmentFile = config.secrets.acmeEnvironment.path;
dnsProvider = "cloudflare";
dnsResolver = "1.1.1.1";
email = "security@${domain}";

View file

@ -8,7 +8,7 @@ let
port = 8001;
in systemConfiguration {
secrets.forgejoMailPassword = {
file = ../../disk/mail/password.plain.age;
file = self + /hosts/disk/mail/password.plain.age;
owner = "forgejo";
};
secrets.forgejoRunnerPassword = {

View file

@ -12,7 +12,7 @@ in systemConfiguration {
owner = "grafana";
};
secrets.grafanaMailPassword = {
file = ../../disk/mail/password.plain.age;
file = self + /hosts/disk/mail/password.plain.age;
owner = "grafana";
};

View file

@ -2,7 +2,7 @@
systemConfiguration {
imports = [
(self + /hosts/cube/acme.nix)
(self + /hosts/cube/acme)
(self + /hosts/cube/nginx.nix)
(self + /hosts/cube/site.nix)
];