~abyxcos/nas.nix

7fb24741e90bbab16e6603a70ff18cbf3d855c12 — root 1 year, 25 days ago d8d667c
Set up forgejo action runners. This requires enabling docker.
1 files changed, 27 insertions(+), 18 deletions(-)

M configuration.nix
M configuration.nix => configuration.nix +27 -18
@@ 42,6 42,12 @@ let options = {
	virtualisation = {
		libvirtd.enable = true;
		libvirtd.qemu.ovmf.enable = true;

		docker.enable = true;
		docker.daemon.settings = {
			fixed-cidr-v6 = "fd01::/80";
			ipv6 = true;
		};
	};

  # libvirtd now requires polkit to be enabled


@@ 183,11 189,13 @@ let options = {
		# https://carjorvaz.com/posts/setting-up-headscale-on-nixos/
		# https://github.com/gurucomputing/headscale-ui
		headscale = {
			enable = true;
			enable = false;
			address = "0.0.0.0";
			port = 7610;
			serverUrl = "http://headscale.mnetic.ch";
			dns.baseDomain = "headscale.mnetic.ch";
			settings = {
				serverUrl = "http://headscale.mnetic.ch";
				dns.base_domain = "headscale.mnetic.ch";
			};
		};

		nginx.virtualHosts."headscale.mnetic.ch" = {


@@ 211,13 219,14 @@ let options = {

		gitea = {
			enable = true;
			package = pkgs.unstable.forgejo;
			package = pkgs.forgejo;
			stateDir = "/mnt/guava/services/foregejo";

			domain = "git.mnetic.ch";
			rootUrl = "http://git.mnetic.ch";

			settings = {
				server = {
					DOMAIN = "git.mnetic.ch";
					ROOT_URL = "http://git.mnetic.ch";
				};
				service = {
					# DISABLE_REGISTRATION = true;
					REGISTER_MANUAL_CONFIRM = true;


@@ 236,17 245,17 @@ let options = {

		# https://forgejo.org/2023-02-27-forgejo-actions/
		# https://forgejo.org/docs/v1.20/admin/actions/
#		gitea-actions-runner = {
#			enable = true;
#			package = pkgs.unstable.gitea-actions-runner;
#
#			instances.nas = {
#				enable = true;
#				name = config.networking.hostName;
#				url = "http://git.mnetic.ch";
#				token = "NdpdliqzuD7zzEpoPEtkHkOIFVXVCIs8tLrk64Id";
#			};
#		};
		gitea-actions-runner = {
			# package = pkgs.unstable.gitea-actions-runner;

			instances.nas = {
				enable = true;
				name = config.networking.hostName;
				url = "http://git.mnetic.ch";
				token = "mGULm6uyFKtMm84ExV2OrUfisaSUzoYf1pQOEDdI";
				labels = [];
			};
		};

		nginx.virtualHosts."git.mnetic.ch" = {
			locations."/".proxyPass = "http://localhost:3000/";