Format project using nixfmt rfc candidate.

This commit is contained in:
Kevin Baensch 2024-11-20 20:32:38 +01:00
parent 1f63817684
commit a9f7fe416f
Signed by: derped
GPG key ID: C0F1D326C7626543
91 changed files with 1347 additions and 1000 deletions

View file

@ -4,10 +4,10 @@
...
}:
with lib;
{
vHost =
if config.services.nix-serve.enable
then {
{
vHost =
if config.services.nix-serve.enable then
{
extraConfig = ''
location / {
proxy_pass http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port};
@ -18,6 +18,7 @@ with lib;
}
'';
}
else {};
}
.vHost
else
{ };
}
.vHost

View file

@ -4,10 +4,10 @@
...
}:
with lib;
{
vHost =
if config.services.forgejo.enable
then {
{
vHost =
if config.services.forgejo.enable then
{
root = "${config.services.forgejo.stateDir}/public";
extraConfig = ''
location / {
@ -28,6 +28,7 @@ with lib;
}
'';
}
else {};
}
.vHost
else
{ };
}
.vHost

View file

@ -4,10 +4,10 @@
...
}:
with lib;
{
vHost =
if config.services.hydra.enable
then {
{
vHost =
if config.services.hydra.enable then
{
extraConfig = ''
location / {
proxy_pass http://${config.services.hydra.listenHost}:${toString config.services.hydra.port};
@ -18,6 +18,7 @@ with lib;
}
'';
}
else {};
}
.vHost
else
{ };
}
.vHost

View file

@ -4,14 +4,15 @@
...
}:
with lib;
{
vHost =
if config.mailserver.enable
then {
{
vHost =
if config.mailserver.enable then
{
serverName = config.mailserver.fqdn;
enableACME = true;
forceSSL = true;
}
else {};
}
.vHost
else
{ };
}
.vHost

View file

@ -6,13 +6,13 @@
...
}:
with lib;
if config.services.nextcloud.enable
then
{
vHost = {
enableACME = config.services.nextcloud.https;
forceSSL = config.services.nextcloud.https;
};
}
.vHost
else {}
if config.services.nextcloud.enable then
{
vHost = {
enableACME = config.services.nextcloud.https;
forceSSL = config.services.nextcloud.https;
};
}
.vHost
else
{ }

View file

@ -4,9 +4,9 @@
...
}:
with lib;
{
vHost = {
root = "/var/www";
};
}
.vHost
{
vHost = {
root = "/var/www";
};
}
.vHost

View file

@ -6,10 +6,11 @@
with lib;
let
tandoor = config.services.tandoor-recipes;
in {
vHost =
if tandoor.enable
then {
in
{
vHost =
if tandoor.enable then
{
extraConfig = ''
location /media/ {
alias ${tandoor.extraConfig.MEDIA_ROOT};
@ -24,6 +25,7 @@ in {
}
'';
}
else {};
}
.vHost
else
{ };
}
.vHost