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:
parent
0179f02819
commit
28874ebb5f
@ -78,6 +78,9 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./hosts/n100/configuration.nix
|
./hosts/n100/configuration.nix
|
||||||
./hosts/n100/hardware-configuration.nix
|
./hosts/n100/hardware-configuration.nix
|
||||||
|
] ++ [
|
||||||
|
# modules
|
||||||
|
./modules/gitea/n100
|
||||||
];
|
];
|
||||||
|
|
||||||
deployment.targetHost = "n100.homelab.local";
|
deployment.targetHost = "n100.homelab.local";
|
||||||
@ -89,6 +92,9 @@
|
|||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
./hosts/zimablade/configuration.nix
|
./hosts/zimablade/configuration.nix
|
||||||
./hosts/zimablade/hardware-configuration.nix
|
./hosts/zimablade/hardware-configuration.nix
|
||||||
|
] ++ [
|
||||||
|
# modules
|
||||||
|
./modules/gitea/zimablade
|
||||||
];
|
];
|
||||||
|
|
||||||
deployment.targetHost = "zimablade.homelab.local";
|
deployment.targetHost = "zimablade.homelab.local";
|
||||||
|
|||||||
@ -1,6 +1,19 @@
|
|||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
virtualisation.docker = {
|
# virtualisation.docker = {
|
||||||
|
# enable = true;
|
||||||
|
# storageDriver = "btrfs";
|
||||||
|
# };
|
||||||
|
|
||||||
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
storageDriver = "btrfs";
|
openFirewall = true;
|
||||||
|
loadModels = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.open-webui = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
host = "0.0.0.0";
|
||||||
|
port = 8050;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
./glances.nix
|
./glances.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
./coredns
|
./coredns
|
||||||
./gitea.nix
|
|
||||||
./copyparty.nix
|
./copyparty.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -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 ];
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
{nodes, ...}:{
|
||||||
|
networking.nat.forwardPorts = [{
|
||||||
|
sourcePort = nodes.zimablade.config.services.gitea.settings.server.SSH_PORT;
|
||||||
|
proto = "tcp";
|
||||||
|
destination = "10.0.0.4:22";
|
||||||
|
}];
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user