38 lines
698 B
Nix
38 lines
698 B
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
#sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
networking = {
|
|
hostName = mkDefault "gitea";
|
|
useDHCP = false;
|
|
nameservers = [ "1.1.1.1" ];
|
|
};
|
|
|
|
imports = [
|
|
../modules/malobeo_user.nix
|
|
../modules/sshd.nix
|
|
../modules/minimal_tools.nix
|
|
../modules/autoupdate.nix
|
|
];
|
|
|
|
services.gitea = {
|
|
enable = true;
|
|
appName = "malobeo git instance";
|
|
|
|
settings.server = {
|
|
DOMAIN = "git.malobeo.org";
|
|
HTTP_PORT = 3001;
|
|
SSH_PORT = 22;
|
|
ROOT_URL = "https://git.malobeo.org/";
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 3001 ];
|
|
|
|
system.stateVersion = "22.11"; # Did you read the comment?
|
|
}
|
|
|