diff --git a/depot/hosts/athame/nixos.nix b/depot/hosts/athame/nixos.nix
index cda80f3a..8d796fed 100644
--- a/depot/hosts/athame/nixos.nix
+++ b/depot/hosts/athame/nixos.nix
@@ -86,14 +86,17 @@ with lib;
enable = true;
pubkey = "55e3f29c252d16e73ac849a6039824f94df1dee670c030b9e29f90584f935575";
listen.enable = true;
- listen.endpoints = [ "tcp://${config.network.addresses.public.ipv4.address}:52969" "tcp://${config.network.addresses.public.ipv6.address}:52969" ];
+ listen.endpoints = [ "tcp://${config.network.addresses.public.ipv4.address}:52969" "tcp://[${config.network.addresses.public.ipv6.address}]:52969" ];
};
};
# Firewall
network.firewall = {
- public.interfaces = singleton "enp1s0";
+ public = {
+ interfaces = singleton "enp1s0";
+ tcp.ports = singleton 52969;
+ };
private.interfaces = singleton "yggdrasil";
};
diff --git a/depot/services/gitea/default.nix b/depot/services/gitea/default.nix
index d70199ca..165fd877 100644
--- a/depot/services/gitea/default.nix
+++ b/depot/services/gitea/default.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, tf, ... }:
+{ config, lib, pkgs, tf, ... }:
{
kw.secrets = [
@@ -54,17 +54,27 @@
ENABLE_NOTIFY_MAIL = true;
};
ui = {
- THEMES = "gitea,arc-green";
- DEFAULT_THEME = "gitea";
+ THEMES = "pitchblack,gitea,arc-green";
+ DEFAULT_THEME = "pitchblack";
THEME_COLOR_META_TAG = "#222222";
};
};
};
- systemd.services.gitea.preStart = ''
- ${pkgs.coreutils}/bin/ln -sfT ${./public} /var/lib/gitea/custom/public
- ${pkgs.coreutils}/bin/ln -sfT ${./templates} /var/lib/gitea/custom/templates
- '';
+ systemd.services.gitea.serviceConfig.ExecStartPre = [
+ "${pkgs.coreutils}/bin/ln -sfT ${pkgs.runCommand "gitea-public" {
+ } ''
+ ${pkgs.coreutils}/bin/mkdir -p $out/{css,img}
+ ${pkgs.coreutils}/bin/cp ${pkgs.fetchFromGitHub {
+ owner = "iamdoubz";
+ repo = "Gitea-Pitch-Black";
+ rev = "38a10947254e46a0a3c1fb90c617d913d6fe63b9";
+ sha256 = "1zpmjv0h4k9nf52yaj22zyfabhv83n79f6cj6kfm5s685b2s1348";
+ }}/theme-pitchblack.css $out/css
+ ${pkgs.coreutils}/bin/cp -r ${./public}/* $out/
+ ''} /var/lib/gitea/custom/public"
+ "${pkgs.coreutils}/bin/ln -sfT ${./templates} /var/lib/gitea/custom/templates"
+ ];
services.nginx.virtualHosts."git.${config.network.dns.domain}" = {
enableACME = true;
diff --git a/depot/services/gitea/public/img/gitea-lg.png b/depot/services/gitea/public/img/gitea-lg.png
index c98a84cc..19ee8dac 100644
Binary files a/depot/services/gitea/public/img/gitea-lg.png and b/depot/services/gitea/public/img/gitea-lg.png differ
diff --git a/depot/services/gitea/public/img/gitea-sm.png b/depot/services/gitea/public/img/gitea-sm.png
index 7588f91a..05277f03 100644
Binary files a/depot/services/gitea/public/img/gitea-sm.png and b/depot/services/gitea/public/img/gitea-sm.png differ
diff --git a/depot/services/gitea/public/img/logo.svg b/depot/services/gitea/public/img/logo.svg
new file mode 100644
index 00000000..05aca485
--- /dev/null
+++ b/depot/services/gitea/public/img/logo.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/nix/sources.json b/nix/sources.json
index c4c472b7..a24655ca 100644
--- a/nix/sources.json
+++ b/nix/sources.json
@@ -53,10 +53,10 @@
"homepage": null,
"owner": "kittywitch",
"repo": "nixexprs",
- "rev": "27778b42a7736d5208d9f68f7394492e8769a9c5",
- "sha256": "069dw03p1bgqh445w5zan9dpx5l338spb2dhwx2x1dpx3dv06g8s",
+ "rev": "4d874bf15445951693db8e99e89d191a68cf966d",
+ "sha256": "1613fdzl3fani82kjvficlgj1y8980i9dsmb21idr8112y3lf5cl",
"type": "tarball",
- "url": "https://github.com/kittywitch/nixexprs/archive/27778b42a7736d5208d9f68f7394492e8769a9c5.tar.gz",
+ "url": "https://github.com/kittywitch/nixexprs/archive/4d874bf15445951693db8e99e89d191a68cf966d.tar.gz",
"url_template": "https://github.com///archive/.tar.gz"
},
"niv": {