updates
This commit is contained in:
parent
10e9ffb925
commit
5d9730428a
2 changed files with 26 additions and 2 deletions
4
.github/workflows/daily-flake-update.yml
vendored
4
.github/workflows/daily-flake-update.yml
vendored
|
|
@ -33,6 +33,10 @@ jobs:
|
|||
experimental-features = nix-command flakes
|
||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install Dependencies
|
||||
id: deps
|
||||
run: apt update && apt install jq
|
||||
|
||||
- name: Check for existing PR
|
||||
id: check-pr
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -10,6 +10,12 @@ with lib.custom; let
|
|||
cfg = config.sites.forgejo;
|
||||
frg = config.services.forgejo;
|
||||
srv = frg.settings.server;
|
||||
|
||||
theme = pkgs.fetchzip {
|
||||
url = "https://github.com/catppuccin/gitea/releases/download/v1.0.2/catppuccin-gitea.tar.gz";
|
||||
sha256 = "sha256-rZHLORwLUfIFcB6K9yhrzr+UwdPNQVSadsw6rg8Q7gs=";
|
||||
stripRoot = false;
|
||||
};
|
||||
in {
|
||||
options.sites.forgejo = with types; {
|
||||
enable = mkBoolOpt false "Enable Forgejo site";
|
||||
|
|
@ -27,7 +33,7 @@ in {
|
|||
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
|
||||
};
|
||||
|
||||
catppuccin.forgejo.enable = true;
|
||||
catppuccin.forgejo.enable = false;
|
||||
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-actions-runner;
|
||||
|
|
@ -60,6 +66,15 @@ in {
|
|||
ROOT_URL = "https://${srv.DOMAIN}";
|
||||
HTTP_PORT = 7201;
|
||||
};
|
||||
ui = {
|
||||
THEMES =
|
||||
builtins.concatStringsSep
|
||||
","
|
||||
(["auto"]
|
||||
++ (map (name: lib.removePrefix "theme-" (lib.removeSuffix ".css" name))
|
||||
(builtins.attrNames (builtins.readDir theme))));
|
||||
DEFAULT_THEME = "catppuccin-mocha-blue";
|
||||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
actions = {
|
||||
ENABLED = true;
|
||||
|
|
@ -84,7 +99,12 @@ in {
|
|||
pwd = config.age.secrets.forgejo-pw;
|
||||
user = "zoey";
|
||||
in ''
|
||||
${adminCmd} create --admin --email "hi@zoeys.computer" --username ${user} --password "$(tr -d '\n' < ${pwd.path})" || true'';
|
||||
${adminCmd} create --admin --email "hi@zoeys.computer" --username ${user} --password "$(tr -d '\n' < ${pwd.path})" || true
|
||||
|
||||
rm -rf ${config.services.forgejo.stateDir}/custom/public/assets
|
||||
mkdir -p ${config.services.forgejo.stateDir}/custom/public/assets
|
||||
ln -sf ${theme} ${config.services.forgejo.stateDir}/custom/public/assets/css
|
||||
'';
|
||||
|
||||
age.secrets = {
|
||||
forgejo-mailer-password = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue