Merge pull request 'feat: use forgejo NixOS module with gitea user' (#111) from feat/forgejo-module into main
Reviewed-on: #111 Reviewed-by: hensoko <hensoko@noreply.git.pub.solar>
This commit is contained in:
commit
b54ff7d6bf
|
@ -32,13 +32,26 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.gitea = {
|
users.users.gitea = {
|
||||||
|
home = "/var/lib/forgejo";
|
||||||
|
useDefaultShell = true;
|
||||||
|
group = "gitea";
|
||||||
|
isSystemUser = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
users.groups.gitea = {};
|
||||||
|
|
||||||
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
user = "gitea";
|
||||||
|
group = "gitea";
|
||||||
package = pkgs.forgejo;
|
package = pkgs.forgejo;
|
||||||
appName = "pub.solar git server";
|
appName = "pub.solar git server";
|
||||||
database = {
|
database = {
|
||||||
type = "postgres";
|
type = "postgres";
|
||||||
passwordFile = config.age.secrets.forgejo-database-password.path;
|
passwordFile = config.age.secrets.forgejo-database-password.path;
|
||||||
|
name = "gitea";
|
||||||
|
user = "gitea";
|
||||||
};
|
};
|
||||||
stateDir = "/var/lib/forgejo";
|
stateDir = "/var/lib/forgejo";
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue