diff --git a/flake.nix b/flake.nix index e9ef595..a2cbe69 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,10 @@ url = "github:rafaelmardojai/firefox-gnome-theme"; flake = false; }; + gitea-github-theme = { + url = "git+ssh://git@git.vimium.com/jordan/gitea-github-theme.git?ref=main"; + flake = false; + }; nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-mailserver = { url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-23.11"; diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix index 1fdfa73..d5d8fe0 100644 --- a/modules/services/gitea/default.nix +++ b/modules/services/gitea/default.nix @@ -39,6 +39,13 @@ in { }; }; + systemd.tmpfiles.rules = [ + "d '${config.services.gitea.customDir}/public/assets/css' 0750 ${config.services.gitea.user} ${config.services.gitea.group} - -" + "L+ '${config.services.gitea.customDir}/public/assets/css/theme-github.css' - - - - ${inputs.gitea-github-theme}/theme-github.css" + "L+ '${config.services.gitea.customDir}/public/assets/css/theme-github-auto.css' - - - - ${inputs.gitea-github-theme}/theme-github-auto.css" + "L+ '${config.services.gitea.customDir}/public/assets/css/theme-github-dark.css' - - - - ${inputs.gitea-github-theme}/theme-github-dark.css" + ]; + services.gitea = rec { package = pkgs.unstable.gitea; enable = true; @@ -69,7 +76,7 @@ in { session.COOKIE_SECURE = true; log.ROOT_PATH = "${stateDir}/log"; ui = { - THEMES = "gitea,arc-green,github-dark,bthree-dark"; + THEMES = "gitea,arc-green,github,github-auto,github-dark"; DEFAULT_THEME = "github-dark"; }; actions.ENABLED = true;