add user forgejo

master
Jalil Arfaoui 2024-11-15 22:18:48 +01:00
parent b36cc22d2a
commit 01ebf66bcc
2 changed files with 10 additions and 2 deletions

View File

@ -13,4 +13,6 @@
git tig
wget
];
# networking.firewall.enable = false;
}

View File

@ -3,8 +3,6 @@ let
srv = config.services.forgejo.settings.server;
in
{
networking.firewall.enable = false;
services.nginx = {
virtualHosts.${config.services.forgejo.settings.server.DOMAIN} = {
forceSSL = true;
@ -16,6 +14,14 @@ in
};
};
users.groups.forgejo = {};
users.users.forgejo = {
isSystemUser = true;
useDefaultShell = true;
group = "forgejo";
home = config.services.forgejo.stateDir;
};
services.forgejo = {
enable = true;
database.type = "postgres";