mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Doing some more layout changes.
This commit is contained in:
parent
ddeb8a9566
commit
6dcbea4918
22 changed files with 37 additions and 63 deletions
|
|
@ -1,24 +1,23 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let unstable = import <nixos-unstable> { };
|
{
|
||||||
in {
|
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware.nix
|
||||||
# db
|
# db
|
||||||
./services/postgres.nix
|
./postgres.nix
|
||||||
# nginx
|
# nginx
|
||||||
../../services/nginx.nix
|
../../services/nginx.nix
|
||||||
./services/virtualHosts.nix
|
./virtualhosts.nix
|
||||||
# services
|
# services
|
||||||
./services/gitea.nix
|
./gitea.nix
|
||||||
./services/nextcloud.nix
|
./nextcloud.nix
|
||||||
./services/bitwarden.nix
|
./bitwarden.nix
|
||||||
# comms services
|
# comms
|
||||||
./services/znc.nix
|
./znc.nix
|
||||||
./services/weechat.nix
|
./weechat.nix
|
||||||
./services/matrix.nix
|
./matrix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
meta.deploy.ssh.host = "athame.kittywit.ch";
|
meta.deploy.ssh.host = "athame.kittywit.ch";
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
let secrets = (import ../../../../secrets.nix);
|
|
||||||
in {
|
|
||||||
services.znc = {
|
|
||||||
enable = true;
|
|
||||||
mutable = false;
|
|
||||||
useLegacyConfig = false;
|
|
||||||
openFirewall = false;
|
|
||||||
config = {
|
|
||||||
Listener.l = {
|
|
||||||
Port = 5000;
|
|
||||||
SSL = false;
|
|
||||||
AllowWeb = true;
|
|
||||||
};
|
|
||||||
modules = [ "webadmin" "adminlog" ];
|
|
||||||
User.kat = {
|
|
||||||
Admin = true;
|
|
||||||
Nick = secrets.hosts.athame.znc.nick;
|
|
||||||
AltNick = secrets.hosts.athame.znc.altNick;
|
|
||||||
Network.freenode = {
|
|
||||||
Server = "chat.freenode.net +6697 ${secrets.hosts.athame.znc.freenode.password}";
|
|
||||||
Chan = secrets.hosts.athame.znc.freenode.channels;
|
|
||||||
Nick = secrets.hosts.athame.znc.freenode.nick;
|
|
||||||
AltNick = secrets.hosts.athame.znc.freenode.altNick;
|
|
||||||
JoinDelay = 2;
|
|
||||||
LoadModule = [ "simple_away" "nickserv" ];
|
|
||||||
};
|
|
||||||
Network.espernet = {
|
|
||||||
Server = "anarchy.esper.net +6697 ${secrets.hosts.athame.znc.espernet.password}";
|
|
||||||
Chan = secrets.hosts.athame.znc.espernet.channels;
|
|
||||||
Nick = secrets.hosts.athame.znc.espernet.nick;
|
|
||||||
AltNick = secrets.hosts.athame.znc.espernet.altNick;
|
|
||||||
JoinDelay = 2;
|
|
||||||
LoadModule = [ "simple_away" "nickserv" ];
|
|
||||||
};
|
|
||||||
Pass.password = {
|
|
||||||
Method = secrets.hosts.athame.znc.password.method;
|
|
||||||
Hash = secrets.hosts.athame.znc.password.hash;
|
|
||||||
Salt = secrets.hosts.athame.znc.password.salt;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
20
config/hosts/athame/znc.nix
Normal file
20
config/hosts/athame/znc.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let secrets = (import ../../../../secrets.nix);
|
||||||
|
in {
|
||||||
|
services.znc = {
|
||||||
|
enable = true;
|
||||||
|
mutable = false;
|
||||||
|
useLegacyConfig = false;
|
||||||
|
openFirewall = false;
|
||||||
|
config = {
|
||||||
|
Listener.l = {
|
||||||
|
Port = 5000;
|
||||||
|
SSL = false;
|
||||||
|
AllowWeb = true;
|
||||||
|
};
|
||||||
|
modules = [ "webadmin" "adminlog" ];
|
||||||
|
User = secrets.hosts.athame.znc;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware.nix
|
||||||
#./wireguard.nix
|
#./wireguard.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../services/zfs.nix
|
../../services/zfs.nix
|
||||||
./hardware-configuration.nix
|
./hardware.nix
|
||||||
../../services/nginx.nix
|
../../services/nginx.nix
|
||||||
./services/thermal/thermal.nix
|
./thermal/thermal.nix
|
||||||
./services/torrenting.nix
|
./torrenting.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
meta.deploy.profiles =
|
meta.deploy.profiles =
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware.nix
|
||||||
../../services/zfs.nix
|
../../services/zfs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue