mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-05 15:36:23 +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;
|
enable = true;
|
||||||
package = pkgsUnstable.forgejo;
|
package = pkgsUnstable.forgejo;
|
||||||
repositoryRoot = "/forgejo/repos";
|
repositoryRoot = "/forgejo/repos";
|
||||||
|
stateDir = "/var/lib/gitea";
|
||||||
appName = "Katzenschmiede";
|
appName = "Katzenschmiede";
|
||||||
|
user = "gitea";
|
||||||
|
group = "gitea";
|
||||||
database = {
|
database = {
|
||||||
type = "postgres";
|
type = "postgres";
|
||||||
|
name = "gitea";
|
||||||
|
user = "gitea";
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
openid = {
|
openid = {
|
||||||
|
@ -42,7 +57,7 @@
|
||||||
};
|
};
|
||||||
deployment.keys = {
|
deployment.keys = {
|
||||||
"noreply-mail-pw-plain" = {
|
"noreply-mail-pw-plain" = {
|
||||||
keyCommand = [ "pass" "mailpws/plain/noreply" ];
|
keyCommand = ["pass" "mailpws/plain/noreply"];
|
||||||
destDir = "/var/lib/secrets";
|
destDir = "/var/lib/secrets";
|
||||||
permissions = "0604";
|
permissions = "0604";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue