houston, we have freshrss

This commit is contained in:
Anish Lakhwara 2022-12-07 22:30:25 +10:00
parent 899fa478c2
commit 12875ff891
3 changed files with 11 additions and 6 deletions

View file

@ -247,6 +247,7 @@
};
helix = {
hostname = "git.sealight.xyz";
autoRollback = false;
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.helix;

View file

@ -24,7 +24,7 @@
services.NetworkManager-wait-online.wantedBy = pkgs.lib.mkForce [ ]; # Normally ["network-online.target"]
};
programs.gnupg.agent.pinentryFlavor = "gnome3";
programs.gnupg.agent.pinentryFlavor = "gtk2";
fileSystems."/mnt/ftp" = {
device = "192.168.1.240:/home/ftp";

View file

@ -11,6 +11,7 @@
database = {
type = "pgsql";
passFile = "/run/agenix/freshrss-dbpass";
port = 5432;
};
};
@ -20,15 +21,18 @@
authentication = ''
local freshrss all ident map=freshrss-users
'';
identMap = # Map the gitea user to postgresql
identMap = # Map the freshrss user to postgresql
''
freshrss-users freshrss freshrss
'';
# TODO with password
ensureDatabases = [ "freshrss" ];
ensureUsers = [
{ name = "freshrss"; ensurePermissions."DATABASE freshrss" = "ALL PRIVILEGES"; }
];
# TODO
# initialScript # set password for gitea user
};
services.nginx.virtualHosts."rss.sealight.xyz" = {
enableACME = true;
forceSSL = true;
};
networking.firewall.allowedTCPPorts = [ 80 443 ];