What changed here was: - I updated the lock file - I added ZNC to my services - I moved my services to a new directory - I renamed my user to arturm - I renamed my system to cityseventeen - I moved to en_US.UTF-8 - I switched to using Rose Pine - I added a Mako option - Some refactoring where it was needed These are all changes I forgot to commit, I had intentions of commiting them but I didn't until now. Oops!
57 lines
1.7 KiB
Nix
57 lines
1.7 KiB
Nix
{ config, ... }:
|
|
let
|
|
cfg = config.services.forgejo;
|
|
srv = cfg.settings.server;
|
|
in
|
|
{
|
|
services.nginx = {
|
|
virtualHosts.${cfg.settings.server.DOMAIN} = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
extraConfig = ''
|
|
client_max_body_size 512M;
|
|
'';
|
|
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
|
|
};
|
|
};
|
|
|
|
services.forgejo = {
|
|
enable = true;
|
|
database.type = "postgres";
|
|
# Enable support for Git Large File Storage
|
|
lfs.enable = true;
|
|
settings = {
|
|
server = {
|
|
DOMAIN = "192.168.1.252";
|
|
# You need to specify this to remove the port from URLs in the web UI.
|
|
ROOT_URL = "http://${srv.DOMAIN}:${toString srv.HTTP_PORT}/";
|
|
HTTP_PORT = 3000;
|
|
};
|
|
# You can temporarily allow registration to create an admin user.
|
|
service.DISABLE_REGISTRATION = false;
|
|
# Add support for actions, based on act: https://github.com/nektos/act
|
|
actions = {
|
|
ENABLED = true;
|
|
DEFAULT_ACTIONS_URL = "github";
|
|
};
|
|
# Sending emails is completely optional
|
|
# You can send a test email from the web UI at:
|
|
# Profile Picture > Site Administration > Configuration > Mailer Configuration
|
|
mailer = {
|
|
ENABLED = true;
|
|
SMTP_ADDR = "mail.example.com";
|
|
FROM = "noreply@${srv.DOMAIN}";
|
|
USER = "noreply@${srv.DOMAIN}";
|
|
PASSWD = "password"; # Locally hosted instance a.k.a. NO ONE CARES.
|
|
};
|
|
default = {
|
|
APP_NAME = "Amadajo";
|
|
APP_SLOGAN = "Fun little instance I just have on my config...";
|
|
};
|
|
};
|
|
};
|
|
|
|
systemd.user.tmpfiles.users.forgejo.rules = [
|
|
"L+ %h/data/home/.ssh - - - - %h/.ssh"
|
|
];
|
|
}
|