hosts: rename cityseventeen and apeturescience
This commit is contained in:
parent
7a3833b08a
commit
ff1392552b
44 changed files with 37 additions and 37 deletions
7
hosts/sodomgomorrah/services/default.nix
Normal file
7
hosts/sodomgomorrah/services/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./znc.nix
|
||||
./forgejo.nix
|
||||
./jellyfin.nix
|
||||
];
|
||||
}
|
57
hosts/sodomgomorrah/services/forgejo.nix
Normal file
57
hosts/sodomgomorrah/services/forgejo.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ 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"
|
||||
];
|
||||
}
|
3
hosts/sodomgomorrah/services/jellyfin.nix
Normal file
3
hosts/sodomgomorrah/services/jellyfin.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.jellyfin.enable = true;
|
||||
}
|
114
hosts/sodomgomorrah/services/znc.nix
Normal file
114
hosts/sodomgomorrah/services/znc.nix
Normal file
|
@ -0,0 +1,114 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
services.znc = {
|
||||
enable = true;
|
||||
useLegacyConfig = false;
|
||||
mutable = true;
|
||||
config = {
|
||||
Listener.l = {
|
||||
AllowIRC = true;
|
||||
AllowWeb = true;
|
||||
IPv4 = true;
|
||||
IPv6 = true;
|
||||
Port = 5000;
|
||||
SSL = false;
|
||||
URIPrefix = "/";
|
||||
};
|
||||
User.amadaluzia = {
|
||||
Admin = true;
|
||||
Allow = "*";
|
||||
AltNick = "amadaluzia_";
|
||||
AppendTimestamp = false;
|
||||
AuthOnlyViaModule = false;
|
||||
AutoClearChanBuffer = true;
|
||||
AutoClearQueryBuffer = true;
|
||||
ChanBufferSize = 50;
|
||||
DenyLoadMod = false;
|
||||
DenySetBindHost = false;
|
||||
Ident = "amadaluzia";
|
||||
JoinTries = 10;
|
||||
LoadModule = [
|
||||
"chansaver"
|
||||
"controlpanel"
|
||||
];
|
||||
MaxJoins = 0;
|
||||
MaxNetworks = 1;
|
||||
MaxQueryBuffers = 50;
|
||||
MultiClients = true;
|
||||
Nick = "amadaluzia";
|
||||
NoTrafficTimeout = 180;
|
||||
PrependTimestamp = true;
|
||||
QueryBufferSize = 50;
|
||||
QuitMsg = "Hi, this is Paul Allen. I'm being called away to London for a few days. Meredith, I'll call you when I get back. Hasta la vista, baby.";
|
||||
RealName = "Artur Manuel";
|
||||
StatusPrefix = "*";
|
||||
TimestampFormat = "[%H:%M:%S]";
|
||||
|
||||
Network = {
|
||||
ATL = {
|
||||
FloodBurst = 9;
|
||||
FloodRate = "2.00";
|
||||
IRCConnectEnabled = true;
|
||||
JoinDelay = 0;
|
||||
LoadModule = [ "simple_away" ];
|
||||
Server = "irc.atl.chat +6697";
|
||||
TrustAllCerts = false;
|
||||
TrustPKI = true;
|
||||
|
||||
Chan = {
|
||||
"#general" = { };
|
||||
"#linux" = { };
|
||||
"#support" = { };
|
||||
};
|
||||
};
|
||||
|
||||
libera = {
|
||||
FloodBurst = 9;
|
||||
FloodRate = "2.00";
|
||||
IRCConnectEnabled = true;
|
||||
JoinDelay = 0;
|
||||
LoadModule = "simple_away";
|
||||
Server = "irc.libera.chat +6697";
|
||||
TrustAllCerts = false;
|
||||
TrustPKI = true;
|
||||
Chan = lib.genAttrs [
|
||||
"##programming"
|
||||
"##rust"
|
||||
"#linux"
|
||||
"#kernel"
|
||||
"#osdev"
|
||||
"#nixos"
|
||||
"#gentoo"
|
||||
"#gentoo-chat"
|
||||
"#archlinux"
|
||||
"#archlinux-offtopic"
|
||||
"#debian"
|
||||
"#voidlinux"
|
||||
"#opensuse"
|
||||
"#opensuse-factory"
|
||||
"#openbsd"
|
||||
"#openbsd-social"
|
||||
"#freebsd"
|
||||
"#go-nuts"
|
||||
"#zig"
|
||||
"#C++"
|
||||
"#C++-general"
|
||||
"#haskell"
|
||||
"#nim"
|
||||
"#lisp"
|
||||
"#esolangs"
|
||||
"#emacs"
|
||||
"#emacs-social"
|
||||
"#nicotine+"
|
||||
] (_: { });
|
||||
};
|
||||
};
|
||||
Pass.password = {
|
||||
Hash = "15767453f2fa83a2ed1c7a1870ea8f154aa2e8b1910fd221471b4e548cd2bede";
|
||||
Method = "SHA256";
|
||||
Salt = "16*z9hcv07WI,m))lZD0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue