add gitea to chungus

This commit is contained in:
Ingolf Wagner 2023-07-08 03:15:18 +02:00
parent 9aed45a8c6
commit da7a5bb935
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
7 changed files with 61 additions and 29 deletions

View file

@ -31,6 +31,7 @@ let
"tdarr.pepe" = hosts.pepe; "tdarr.pepe" = hosts.pepe;
"tts.pepe" = hosts.pepe; "tts.pepe" = hosts.pepe;
# chungus # chungus
"git.chungus" = hosts.chungus;
"flix.chungus" = hosts.chungus; "flix.chungus" = hosts.chungus;
"grafana.chungus" = hosts.chungus; "grafana.chungus" = hosts.chungus;
"loki.chungus" = hosts.chungus; "loki.chungus" = hosts.chungus;

View file

@ -45,6 +45,7 @@
#./kiosk.nix #./kiosk.nix
./trilium.nix ./trilium.nix
./gitea.nix
./cache.nix ./cache.nix
./tts.nix ./tts.nix

View file

@ -120,18 +120,6 @@ in
"com.sun:auto-snapshot:monthly" = true; "com.sun:auto-snapshot:monthly" = true;
}; };
}; };
"nextcloud" = {
type = "zfs_fs";
mountpoint = "/nextcloud";
options = {
mountpoint = "legacy";
compression = "lz4";
"com.sun:auto-snapshot:hourly" = true;
"com.sun:auto-snapshot:daily" = true;
"com.sun:auto-snapshot:weekly" = true;
"com.sun:auto-snapshot:monthly" = true;
};
};
"legacy" = { "legacy" = {
type = "zfs_fs"; type = "zfs_fs";
mountpoint = "/legacy"; mountpoint = "/legacy";
@ -163,6 +151,17 @@ in
"com.sun:auto-snapshot:monthly" = true; "com.sun:auto-snapshot:monthly" = true;
}; };
}; };
"mirror" = {
type = "zfs_fs";
mountpoint = "/mirror";
options = {
mountpoint = "legacy";
compression = "lz4";
"com.sun:auto-snapshot:daily" = true;
"com.sun:auto-snapshot:weekly" = true;
"com.sun:auto-snapshot:montly" = true;
};
};
"services" = { "services" = {
type = "zfs_fs"; type = "zfs_fs";
mountpoint = "/srv"; mountpoint = "/srv";
@ -174,14 +173,6 @@ in
"com.sun:auto-snapshot:montly" = true; "com.sun:auto-snapshot:montly" = true;
}; };
}; };
"services/gitea" = {
type = "zfs_fs";
mountpoint = "/srv/gitea";
options = {
mountpoint = "legacy";
compression = "lz4";
};
};
"container" = { "container" = {
type = "zfs_fs"; type = "zfs_fs";
mountpoint = "/var/lib/containers/storage"; # needed for podman mountpoint = "/var/lib/containers/storage"; # needed for podman

View file

@ -0,0 +1,38 @@
{ config, lib, pkgs, ... }:
{
services.nginx = {
enable = true;
statusPage = true;
virtualHosts = {
"git.chungus.private" = {
extraConfig = ''
allow ${config.tinc.private.subnet};
deny all;
'';
locations."/" = {
proxyPass = "http://localhost:${toString config.services.gogs.httpPort}";
};
};
};
};
services.gitea = {
enable = true;
appName = "git.chungus.private";
stateDir = "/srv/gitea";
settings = {
server.ROOT_URL = "http://git.chungus.private/";
server.DOMAIN = "git.chungus.private";
service.DISABLE_REGISTRATION = false;
session.COOKIE_SECURE = false;
log.LEVEL = "Warn";
other = {
SHOW_FOOTER_VERSION = false;
};
};
};
# backup.dirs = [ "/srv/gitea" ];
}

View file

@ -6,22 +6,22 @@
nextcloud = { nextcloud = {
sshKeyPath = config.sops.secrets.rsync_private_key.path; sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/nextcloud/"; src = "root@robi:/var/lib/nextcloud/";
dst = "/nextcloud"; dst = "/mirror/nextcloud";
}; };
taskwarrior = { taskwarrior = {
sshKeyPath = config.sops.secrets.rsync_private_key.path; sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/taskserver/"; src = "root@robi:/var/lib/taskserver/";
dst = "/srv/taskwarrior"; dst = "/mirror/taskwarrior";
}; };
gitea = { gitea = {
sshKeyPath = config.sops.secrets.rsync_private_key.path; sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/gitea/"; src = "root@robi:/var/lib/gitea/";
dst = "/srv/gitea"; dst = "/mirror/gitea";
}; };
bitwarden = { bitwarden = {
sshKeyPath = config.sops.secrets.rsync_private_key.path; sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/bitwarden_rs/"; src = "root@robi:/var/lib/bitwarden_rs/";
dst = "/srv/bitwarden_rs"; dst = "/mirror/bitwarden_rs";
}; };
torrent = { torrent = {
sshKeyPath = config.sops.secrets.rsync_private_key.path; sshKeyPath = config.sops.secrets.rsync_private_key.path;

View file

@ -10,7 +10,7 @@
targetPkgs = pkgs: (with pkgs; [ targetPkgs = pkgs: (with pkgs; [
black black
isort isort
jetbrains.pycharm-professional unstable.jetbrains.pycharm-professional
python311 python311
pipenv pipenv
zlib # needed for NumPy zlib # needed for NumPy
@ -23,7 +23,7 @@
fhsDataGrip = pkgs.buildFHSUserEnv { fhsDataGrip = pkgs.buildFHSUserEnv {
name = "datagrip"; name = "datagrip";
targetPkgs = pkgs: (with pkgs; [ targetPkgs = pkgs: (with pkgs; [
jetbrains.datagrip unstable.jetbrains.datagrip
]); ]);
runScript = "datagrip"; runScript = "datagrip";
}; };
@ -32,11 +32,12 @@
[ [
# rust development environment # rust development environment
gcc
rustup rustup
jetbrains.clion unstable.jetbrains.clion
# general # general
jetbrains.idea-ultimate unstable.jetbrains.idea-ultimate
#vscode #vscode
fhsDataGrip fhsDataGrip