services/gitea: Move to theme.park overseerr

This commit is contained in:
kat witch 2021-08-30 03:55:30 +01:00
parent 5da38c626d
commit 69f794e218
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
3 changed files with 31 additions and 19 deletions

View file

@ -2,7 +2,8 @@
[![nodes][]][1] [![nodes][]][1]
[This repository on our self hosted git.][] [This repository on my self hosted git.][]
[This repository on GitHub.][] [This repository on GitHub.][]
These are the NixOS configurations for my systems. I run nothing other than NixOS on my hardware, aside from virtual machines. These are the NixOS configurations for my systems. I run nothing other than NixOS on my hardware, aside from virtual machines.
@ -23,7 +24,7 @@ These are the NixOS configurations for my systems. I run nothing other than NixO
- [ ] Consider reworking [kittywitch/nixexprs][] and [kittywitch/nixfiles-base][]. - [ ] Consider reworking [kittywitch/nixexprs][] and [kittywitch/nixfiles-base][].
- [x] In-housed [kittywitch/nixexprs][] as [exprs][]. - [x] In-housed [kittywitch/nixexprs][] as [exprs][].
- [x] Merged our local changes with [exprs][]. - [x] Merged my local changes with [exprs][].
- [ ] Prioritise modules reusability. - [ ] Prioritise modules reusability.
- [ ] Expand [kittywitch/anicca][] to be a module that helps with impermanence, too. - [ ] Expand [kittywitch/anicca][] to be a module that helps with impermanence, too.
- [x] Host impermanence enablement check. - [x] Host impermanence enablement check.
@ -32,7 +33,7 @@ These are the NixOS configurations for my systems. I run nothing other than NixO
- [ ] Bind mount start/enabler script. - [ ] Bind mount start/enabler script.
- [ ] Move to using [arcnmx/screenstub][] without any patches. - [ ] Move to using [arcnmx/screenstub][] without any patches.
- [ ] Check new config options, port current patch to new config options. - [ ] Check new config options, port current patch to new config options.
- [ ] Add swaylock-effects to our theme module. - [ ] Add swaylock-effects to my theme module.
- [x] Patched swaylock-effects. - [x] Patched swaylock-effects.
- [x] Working with swayidle + … - [x] Working with swayidle + …
- [ ] Add to module. - [ ] Add to module.
@ -43,7 +44,7 @@ These are the NixOS configurations for my systems. I run nothing other than NixO
- [ ] glauca.digital migration. - [ ] glauca.digital migration.
- [ ] Migrate [athame][] to OCI. - [ ] Migrate [athame][] to OCI.
- [ ] Look into alternatives to Yggdrasil and move to them. - [ ] Look into alternatives to Yggdrasil and move to them.
- [ ] Set up IPv6 network handling for our hosts. - [ ] Set up IPv6 network handling for my hosts.
- [x] Fix network module tf-nix integrations. - [x] Fix network module tf-nix integrations.
- [x] Rinnosuke IPv6. - [x] Rinnosuke IPv6.
- [ ] Local node IPv6 configuration. - [ ] Local node IPv6 configuration.
@ -177,7 +178,7 @@ Please use `nix-shell` or [direnv/direnv][]. The shell is not compatible with [n
[nodes]: https://github.com/kittywitch/nixfiles/actions/workflows/nodes.yml/badge.svg [nodes]: https://github.com/kittywitch/nixfiles/actions/workflows/nodes.yml/badge.svg
[1]: https://github.com/kittywitch/nixfiles/actions/workflows/nodes.yml [1]: https://github.com/kittywitch/nixfiles/actions/workflows/nodes.yml
[This repository on our self hosted git.]: https://git.kittywit.ch/kat/nixfiles [This repository on my self hosted git.]: https://git.kittywit.ch/kat/nixfiles
[This repository on GitHub.]: https://github.com/kittywitch/nixfiles [This repository on GitHub.]: https://github.com/kittywitch/nixfiles
[To-do]: #to-do [To-do]: #to-do
[2]: #nodes [2]: #nodes

View file

@ -54,27 +54,37 @@
ENABLE_NOTIFY_MAIL = true; ENABLE_NOTIFY_MAIL = true;
}; };
ui = { ui = {
THEMES = "pitchblack,gitea,arc-green"; THEMES = "gitea";
DEFAULT_THEME = "pitchblack"; DEFAULT_THEME = "gitea";
THEME_COLOR_META_TAG = "#222222"; THEME_COLOR_META_TAG = "#222222";
}; };
}; };
}; };
systemd.services.gitea.serviceConfig.ExecStartPre = [ systemd.services.gitea.serviceConfig.ExecStartPre =
"${pkgs.coreutils}/bin/ln -sfT ${pkgs.runCommand "gitea-public" { let
themePark = pkgs.fetchFromGitHub {
owner = "GilbN";
repo = "theme.park";
rev = "009a7b703544955f8a29197597507d9a1ae40d63";
sha256 = "1axqivwkmw6rq0ffwi1mm209bfkvv4lyld2hgyq2zmnl7mj3fifc";
};
binder = pkgs.writeText "styles.css" ''
@import url("/assets/css/gitea-base.css");
@import url("/assets/css/overseerr.css");
'';
in
[
"${pkgs.coreutils}/bin/ln -sfT ${pkgs.runCommand "gitea-public" {
} '' } ''
${pkgs.coreutils}/bin/mkdir -p $out/{css,img} ${pkgs.coreutils}/bin/mkdir -p $out/{css,img}
${pkgs.coreutils}/bin/cp ${pkgs.fetchFromGitHub { ${pkgs.coreutils}/bin/cp ${themePark}/CSS/themes/gitea/gitea-base.css $out/css
owner = "iamdoubz"; ${pkgs.coreutils}/bin/cp ${themePark}/CSS/variables/overseerr.css $out/css
repo = "Gitea-Pitch-Black"; ${pkgs.coreutils}/bin/cp ${binder} $out/css/styles.css
rev = "38a10947254e46a0a3c1fb90c617d913d6fe63b9"; ${pkgs.coreutils}/bin/cp -r ${./public}/* $out/
sha256 = "1zpmjv0h4k9nf52yaj22zyfabhv83n79f6cj6kfm5s685b2s1348";
}}/theme-pitchblack.css $out/css
${pkgs.coreutils}/bin/cp -r ${./public}/* $out/
''} /var/lib/gitea/custom/public" ''} /var/lib/gitea/custom/public"
"${pkgs.coreutils}/bin/ln -sfT ${./templates} /var/lib/gitea/custom/templates" "${pkgs.coreutils}/bin/ln -sfT ${./templates} /var/lib/gitea/custom/templates"
]; ];
services.nginx.virtualHosts."git.${config.network.dns.domain}" = { services.nginx.virtualHosts."git.${config.network.dns.domain}" = {
enableACME = true; enableACME = true;

View file

@ -0,0 +1 @@
<link rel="stylesheet" href="/assets/css/styles.css">