chore: apply nix fmt
This commit is contained in:
parent
caa6948199
commit
e2bd4444d2
47 changed files with 274 additions and 187 deletions
|
|
@ -9,7 +9,8 @@ let
|
|||
inherit (config.machine.forgejo) domain;
|
||||
address = "noreply@${domain}";
|
||||
in
|
||||
with lib; mkIf config.machine.mail.enable {
|
||||
with lib;
|
||||
mkIf config.machine.mail.enable {
|
||||
services.forgejo = {
|
||||
secrets = {
|
||||
mailer.PASSWD = sec."mail/servicePassword".path;
|
||||
|
|
|
|||
|
|
@ -10,19 +10,22 @@ let
|
|||
port
|
||||
;
|
||||
in
|
||||
with lib; mkIf enable {
|
||||
with lib;
|
||||
mkIf enable {
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ port ];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts = with lib; mkIf (domain != null) {
|
||||
"${domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://[::1]:${toString port}";
|
||||
proxyWebsockets = true;
|
||||
services.nginx.virtualHosts =
|
||||
with lib;
|
||||
mkIf (domain != null) {
|
||||
"${domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://[::1]:${toString port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ let
|
|||
url = config.services.forgejo.settings.server.ROOT_URL;
|
||||
cfg = config.machine.forgejo;
|
||||
in
|
||||
with lib; mkIf cfg.enableRunner {
|
||||
with lib;
|
||||
mkIf cfg.enableRunner {
|
||||
sops.secrets = {
|
||||
"forgejo/runnerToken" = {
|
||||
sopsFile = ./../../secrets/common.yaml;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ let
|
|||
cfg = config.machine.forgejo;
|
||||
customDir = config.services.forgejo.customDir;
|
||||
in
|
||||
with lib; mkIf cfg.enable {
|
||||
with lib;
|
||||
mkIf cfg.enable {
|
||||
systemd.tmpfiles.rules = [
|
||||
"d '${customDir}/templates' - forgejo forgejo - -"
|
||||
"d '${customDir}/public' - forgejo forgejo - -"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue