install quassel
This commit is contained in:
parent
eacffaed39
commit
98b40b94c8
1
home/apps/quassel.nix
Normal file
1
home/apps/quassel.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{ pkgs, ... }: { home.packages = with pkgs; [ quasselClient ]; }
|
|
@ -14,6 +14,7 @@
|
||||||
hosts.hetzner-vm.services.invidious
|
hosts.hetzner-vm.services.invidious
|
||||||
hosts.hetzner-vm.services.vault
|
hosts.hetzner-vm.services.vault
|
||||||
hosts.hetzner-vm.services.netdata
|
hosts.hetzner-vm.services.netdata
|
||||||
|
hosts.hetzner-vm.services.quassel
|
||||||
|
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
24
hosts/hetzner-vm/services/quassel.nix
Normal file
24
hosts/hetzner-vm/services/quassel.nix
Normal 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 ];
|
||||||
|
}
|
|
@ -34,6 +34,7 @@
|
||||||
#home.reversing
|
#home.reversing
|
||||||
home.apps.vivaldi
|
home.apps.vivaldi
|
||||||
home.apps.telegram
|
home.apps.telegram
|
||||||
|
home.apps.quassel
|
||||||
#home.apps.osu-lazer
|
#home.apps.osu-lazer
|
||||||
home.programming
|
home.programming
|
||||||
#home.programming.languages.go
|
#home.programming.languages.go
|
||||||
|
|
Loading…
Reference in a new issue