mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-21 21:44:41 +01:00
migrate to forgejo the hacky way
This commit is contained in:
parent
c02dfb80cf
commit
5c4642c6b5
|
@ -1,12 +1,27 @@
|
|||
{ pkgs, pkgsUnstable, ... }:
|
||||
{
|
||||
services.gitea = {
|
||||
pkgs,
|
||||
pkgsUnstable,
|
||||
...
|
||||
}: {
|
||||
users.users.gitea = {
|
||||
home = "/var/lib/gitea";
|
||||
useDefaultShell = true;
|
||||
group = "gitea";
|
||||
isSystemUser = true;
|
||||
};
|
||||
users.groups.gitea = {};
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
package = pkgsUnstable.forgejo;
|
||||
repositoryRoot = "/forgejo/repos";
|
||||
stateDir = "/var/lib/gitea";
|
||||
appName = "Katzenschmiede";
|
||||
user = "gitea";
|
||||
group = "gitea";
|
||||
database = {
|
||||
type = "postgres";
|
||||
name = "gitea";
|
||||
user = "gitea";
|
||||
};
|
||||
settings = {
|
||||
openid = {
|
||||
|
@ -42,7 +57,7 @@
|
|||
};
|
||||
deployment.keys = {
|
||||
"noreply-mail-pw-plain" = {
|
||||
keyCommand = [ "pass" "mailpws/plain/noreply" ];
|
||||
keyCommand = ["pass" "mailpws/plain/noreply"];
|
||||
destDir = "/var/lib/secrets";
|
||||
permissions = "0604";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue