Add emails to gitea
Also more networking changes lmao
This commit is contained in:
@@ -90,9 +90,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.trustedInterfaces = ["tailscale0"];
|
networking.firewall.trustedInterfaces = ["tailscale0"];
|
||||||
networking = {
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
programs.nm-applet.enable = true;
|
programs.nm-applet.enable = true;
|
||||||
|
|||||||
@@ -12,6 +12,10 @@
|
|||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
programs.partition-manager.enable = true;
|
programs.partition-manager.enable = true;
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
security.pam.services.swaylock = {};
|
security.pam.services.swaylock = {};
|
||||||
|
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
age.secrets = {
|
||||||
|
sendmail_email_key_gitea = {
|
||||||
|
file = ../../secrets/sendmail_email_key_gitea.age;
|
||||||
|
owner = "gitea";
|
||||||
|
group = "gitea";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
appName = "The Broccoli Patch"; # Give the site a name
|
appName = "The Broccoli Patch"; # Give the site a name
|
||||||
@@ -23,11 +31,22 @@
|
|||||||
DOMAIN = "git.broccoli.town";
|
DOMAIN = "git.broccoli.town";
|
||||||
};
|
};
|
||||||
service = {
|
service = {
|
||||||
|
REGISTER_EMAIL_CONFIRM = true;
|
||||||
DISABLE_REGISTRATION = true;
|
DISABLE_REGISTRATION = true;
|
||||||
};
|
};
|
||||||
repository = {
|
repository = {
|
||||||
ENABLE_PUSH_CREATE_USER = true;
|
ENABLE_PUSH_CREATE_USER = true;
|
||||||
};
|
};
|
||||||
|
mailer = {
|
||||||
|
ENABLED = true;
|
||||||
|
FROM = "gitea@broccoli.town";
|
||||||
|
MAILER_TYPE = "smtp";
|
||||||
|
SMTP_ADDR = "smtp.sendgrid.net";
|
||||||
|
SMTP_PORT = 465;
|
||||||
|
IS_TLS_ENABLED = true;
|
||||||
|
USER = "apikey";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
mailerPasswordFile = config.age.secrets.sendmail_email_key_gitea.path;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,4 +26,5 @@ in {
|
|||||||
"minisign_private_key.age".publicKeys = users ++ [system1 system3];
|
"minisign_private_key.age".publicKeys = users ++ [system1 system3];
|
||||||
"bigding_backup_s3_creds.age".publicKeys = users ++ [system4];
|
"bigding_backup_s3_creds.age".publicKeys = users ++ [system4];
|
||||||
"bigding_backup_repo_password.age".publicKeys = users ++ [system4];
|
"bigding_backup_repo_password.age".publicKeys = users ++ [system4];
|
||||||
|
"sendmail_email_key_gitea.age".publicKeys = users ++ [system4];
|
||||||
}
|
}
|
||||||
|
|||||||
17
secrets/sendmail_email_key_gitea.age
Normal file
17
secrets/sendmail_email_key_gitea.age
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 eYYv1Q XtRSlxUK8enDmGPLuaNTtRLfPcAw2adI0rg7tyrIsVg
|
||||||
|
wqS2sot8VBkg8AEIVT+8nqp/zQrgx60aO5+EDKAS6Eo
|
||||||
|
-> ssh-ed25519 Bp5IaA xxKUriiEdSH1oG9/vdyjEtyOq7b1zSBY6RyDr13OVUE
|
||||||
|
sWVBSJtX/TNBxINHv4NqmN4yPjNteoMyPH9vZRHp9t4
|
||||||
|
-> ssh-ed25519 T/DpgA MnEwHXMOJIX6EL4j24QX1GD047lQvCLHKSDPvwEXYj0
|
||||||
|
bMVQvcub7BE5kQ7nipQGAg0DLsHhA6y9pQxjG0vLDYo
|
||||||
|
-> ssh-ed25519 qMgRFg nLCDG0cPUGw0EHebVawxraulglOVEdwUWh/c5CFf6CM
|
||||||
|
MagTjYCuIyNF895Kk0Y2uDxZf3u9X5ZKatNPSfENZOA
|
||||||
|
-> ssh-ed25519 dMZXNw FZ2sXIfl1yxkvfuNC6njE/OrH8IptIo7MOwNeHeSrWQ
|
||||||
|
YBC1LUbStFBKX/rHIgtb70+W6mmdk7XOBDnrZBTeEyU
|
||||||
|
-> ssh-ed25519 70Nt2Q hUwnRFHLeArYMmIKh0ObeL+rh3PKgvIOZJjfhXH+fwU
|
||||||
|
vFasj2ysflk5M+KyGfoAkBrk+X0GcphlK8uQFFTvwB0
|
||||||
|
-> C"2am-grease e )q x;Ej
|
||||||
|
gbqZ94TuSRUzfQ
|
||||||
|
--- o0NjU4u5RB1RSAeOGhud8VJSLLpbZSoU7suslTA3rbs
|
||||||
|
<EFBFBD><EFBFBD><EFBFBD>i<EFBFBD>$<>`<60>B<EFBFBD>p<EFBFBD><70><EFBFBD><EFBFBD> J<>n,<2C><>Cu<43>t<EFBFBD>iW<69>l<EFBFBD>e<EFBFBD><65><EFBFBD><EFBFBD><EFBFBD>$/}p<>CU<43><55>n{*Cf<43><66><EFBFBD>>oʁ<6F><17><08><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>L<17><><EFBFBD>'<02>}å8R9<52><39><EFBFBD><EFBFBD><08>I6
|
||||||
Reference in New Issue
Block a user