install quassel

This commit is contained in:
ChaotiCryptidz 2022-01-03 21:13:15 +00:00
parent eacffaed39
commit 98b40b94c8
4 changed files with 27 additions and 0 deletions

1
home/apps/quassel.nix Normal file
View file

@ -0,0 +1 @@
{ pkgs, ... }: { home.packages = with pkgs; [ quasselClient ]; }

View file

@ -14,6 +14,7 @@
hosts.hetzner-vm.services.invidious
hosts.hetzner-vm.services.vault
hosts.hetzner-vm.services.netdata
hosts.hetzner-vm.services.quassel
(modulesPath + "/profiles/qemu-guest.nix")
];

View file

@ -0,0 +1,24 @@
{ ... }: {
services.quassel = {
enable = true;
interfaces = [ "0.0.0.0" ];
};
# needed so quassel can access SSL certs
# TODO: set up SSL
users.groups.acme.members = [ "quassel" ];
# Not gonna serve anything there but shrug.
services.nginx.virtualHosts."quassel.owo.monster" = {
forceSSL = true;
enableACME = true;
};
services.postgresql.ensureDatabases = [ "quassel" ];
services.postgresql.ensureUsers = [{
name = "quassel";
ensurePermissions."DATABASE quassel" = "ALL PRIVILEGES";
}];
services.postgresql.authentication = "host quassel quassel localhost trust";
networking.firewall.allowedTCPPorts = [ 4242 ];
}

View file

@ -34,6 +34,7 @@
#home.reversing
home.apps.vivaldi
home.apps.telegram
home.apps.quassel
#home.apps.osu-lazer
home.programming
#home.programming.languages.go