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:
parent
6c1bdaaec4
commit
a788e9b955
7 changed files with 10 additions and 8 deletions
|
@ -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)
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue