treewide: Reformat project with alejandra

This commit is contained in:
Tristan Daniël Maat 2022-10-10 13:03:08 +01:00
parent 58e52dd119
commit 046a88905d
Signed by: tlater
GPG key ID: 49670FD774E43268
17 changed files with 405 additions and 353 deletions
configuration/services

View file

@ -1,6 +1,4 @@
{ config, ... }:
{
{config, ...}: {
users = {
extraUsers.gitea = {
uid = config.ids.uids.git;
@ -8,19 +6,19 @@
description = "Gitea Service";
group = config.users.extraGroups.gitea.name;
};
extraGroups.gitea = { gid = config.ids.gids.git; };
extraGroups.gitea = {gid = config.ids.gids.git;};
};
virtualisation.pods.gitea = {
hostname = "gitea.tlater.net";
publish = [ "3000:3000" "2221:2221" ];
publish = ["3000:3000" "2221:2221"];
network = "slirp4netns";
containers = {
gitea = {
image = "gitea/gitea:latest";
volumes = [ "gitea:/data:Z" "/etc/localtime:/etc/localtime:ro" ];
dependsOn = [ "postgres" ];
volumes = ["gitea:/data:Z" "/etc/localtime:/etc/localtime:ro"];
dependsOn = ["postgres"];
environment = {
DB_TYPE = "postgres";
@ -43,7 +41,7 @@
POSTGRES_DB = "gitea";
POSTGRES_USER = "gitea";
};
volumes = [ "gitea-postgres-14:/var/lib/postgresql/data" ];
volumes = ["gitea-postgres-14:/var/lib/postgresql/data"];
};
};
};