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;
"tts.pepe" = hosts.pepe;
# chungus
"git.chungus" = hosts.chungus;
"flix.chungus" = hosts.chungus;
"grafana.chungus" = hosts.chungus;
"loki.chungus" = hosts.chungus;

View file

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

View file

@ -120,18 +120,6 @@ in
"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" = {
type = "zfs_fs";
mountpoint = "/legacy";
@ -163,6 +151,17 @@ in
"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" = {
type = "zfs_fs";
mountpoint = "/srv";
@ -174,14 +173,6 @@ in
"com.sun:auto-snapshot:montly" = true;
};
};
"services/gitea" = {
type = "zfs_fs";
mountpoint = "/srv/gitea";
options = {
mountpoint = "legacy";
compression = "lz4";
};
};
"container" = {
type = "zfs_fs";
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 = {
sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/nextcloud/";
dst = "/nextcloud";
dst = "/mirror/nextcloud";
};
taskwarrior = {
sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/taskserver/";
dst = "/srv/taskwarrior";
dst = "/mirror/taskwarrior";
};
gitea = {
sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/gitea/";
dst = "/srv/gitea";
dst = "/mirror/gitea";
};
bitwarden = {
sshKeyPath = config.sops.secrets.rsync_private_key.path;
src = "root@robi:/var/lib/bitwarden_rs/";
dst = "/srv/bitwarden_rs";
dst = "/mirror/bitwarden_rs";
};
torrent = {
sshKeyPath = config.sops.secrets.rsync_private_key.path;

View file

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