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

1
.gitignore vendored
View file

@ -5,6 +5,7 @@
!hosts/
!hosts/cube/
!hosts/cube/acme/
!hosts/cube/forgejo/
!hosts/cube/grafana/
!hosts/cube/matrix/

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)
];

View file

@ -7,6 +7,8 @@ in with keys; {
"hosts/cube/id.age".publicKeys = [ cube enka ];
"hosts/cube/password.rgb.age".publicKeys = [ cube enka ];
"hosts/cube/acme/environment.age".publicKeys = all;
"hosts/cube/forgejo/password.runner.age".publicKeys = [ cube enka ];
"hosts/cube/grafana/password.age".publicKeys = [ cube enka ];
@ -22,7 +24,7 @@ in with keys; {
"hosts/disk/id.age".publicKeys = [ disk enka ];
"hosts/disk/password.floppy.age".publicKeys = [ disk enka ];
"hosts/disk/mail/password.plain.age".publicKeys = [ cube disk enka ]; # TODO: Move to shared.
"hosts/disk/mail/password.plain.age".publicKeys = all;
"hosts/disk/mail/password.hash.age".publicKeys = [ disk enka ];
### enka
@ -30,6 +32,5 @@ in with keys; {
"hosts/enka/password.said.age".publicKeys = [ enka ];
### shared
"hosts/password.acme.age".publicKeys = all;
"modules/ssh/config.age".publicKeys = all;
}