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 git tig
wget wget
]; ];
# networking.firewall.enable = false;
} }

View File

@ -3,8 +3,6 @@ let
srv = config.services.forgejo.settings.server; srv = config.services.forgejo.settings.server;
in in
{ {
networking.firewall.enable = false;
services.nginx = { services.nginx = {
virtualHosts.${config.services.forgejo.settings.server.DOMAIN} = { virtualHosts.${config.services.forgejo.settings.server.DOMAIN} = {
forceSSL = true; 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 = { services.forgejo = {
enable = true; enable = true;
database.type = "postgres"; database.type = "postgres";