refactor gitea configuration in a module

updated: modules/gitea to put specific configuration in the module
updated: flake.nix to import the module in nodes
This commit is contained in:
lelu awen
2025-09-18 18:51:56 +02:00
parent 0179f02819
commit 28874ebb5f
5 changed files with 28 additions and 21 deletions

View File

@@ -1,6 +1,19 @@
{inputs, ...}: {
virtualisation.docker = {
# virtualisation.docker = {
# enable = true;
# storageDriver = "btrfs";
# };
services.ollama = {
enable = true;
storageDriver = "btrfs";
openFirewall = true;
loadModels = [ ];
};
services.open-webui = {
enable = true;
openFirewall = true;
host = "0.0.0.0";
port = 8050;
};
}

View File

@@ -15,7 +15,6 @@
./glances.nix
./secrets.nix
./coredns
./gitea.nix
./copyparty.nix
];

View File

@@ -1,18 +0,0 @@
{lib, nodes, ...}: let
ssh_port = 24658;
in {
services = {
gitea = {
enable = true;
settings = {
server = {
DOMAIN = "git.shobu.fr";
SSH_PORT = ssh_port;
};
};
};
# openssh = {
# ports = lib.mkAfter [ ssh_port ];
# };
};
}