mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 02:57:44 +00:00
Move acme env file to its own directory
This commit is contained in:
parent
6c1bdaaec4
commit
a788e9b955
7 changed files with 10 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,6 +5,7 @@
|
|||
!hosts/
|
||||
|
||||
!hosts/cube/
|
||||
!hosts/cube/acme/
|
||||
!hosts/cube/forgejo/
|
||||
!hosts/cube/grafana/
|
||||
!hosts/cube/matrix/
|
||||
|
|
|
@ -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}";
|
|
@ -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 = {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
|
@ -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)
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue