Compare commits
No commits in common. "007038f1be1d44f04194b5c29d7efa7c52a50eee" and "ce9933abe10d5a13f8c89cb8e233032f041f8f68" have entirely different histories.
007038f1be
...
ce9933abe1
@ -1,6 +1,5 @@
|
||||
{config, ...}: let
|
||||
domain = "git.deku.moe";
|
||||
sshDomain = "git-ssh.deku.moe";
|
||||
httpPort = 3001;
|
||||
sshPort = 22022;
|
||||
in {
|
||||
@ -10,6 +9,16 @@ in {
|
||||
group = config.services.gitea.user;
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
ensureDatabases = [config.services.gitea.user];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = config.services.gitea.database.user;
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
@ -18,7 +27,6 @@ in {
|
||||
database = {
|
||||
type = "postgres";
|
||||
passwordFile = config.age.secrets.gitea.path;
|
||||
name = config.services.gitea.user;
|
||||
user = config.services.gitea.user;
|
||||
};
|
||||
|
||||
@ -34,7 +42,6 @@ in {
|
||||
HTTP_ADDR = "127.0.0.1";
|
||||
HTTP_PORT = httpPort;
|
||||
ROOT_URL = "https://${domain}/";
|
||||
SSH_DOMAIN = sshDomain;
|
||||
SSH_PORT = sshPort;
|
||||
};
|
||||
service = {
|
||||
@ -57,15 +64,6 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
users.users.git = {
|
||||
description = "Gitea Service";
|
||||
home = config.services.gitea.stateDir;
|
||||
useDefaultShell = true;
|
||||
group = "git";
|
||||
isSystemUser = true;
|
||||
};
|
||||
users.groups.git = {};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
email = "chinmaydpai@gmail.com";
|
||||
|
Loading…
Reference in New Issue
Block a user