From 9efda802cb3ef80e1c9be76ffafcf19bde42fd33 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 13 Feb 2026 14:23:48 +0900 Subject: [PATCH] kommode/gitea: move ui configuration to `customization` --- .../services/gitea/customization/default.nix | 57 ++++++++++++++++--- hosts/kommode/services/gitea/default.nix | 42 -------------- 2 files changed, 50 insertions(+), 49 deletions(-) diff --git a/hosts/kommode/services/gitea/customization/default.nix b/hosts/kommode/services/gitea/customization/default.nix index 7752d75f..594e768f 100644 --- a/hosts/kommode/services/gitea/customization/default.nix +++ b/hosts/kommode/services/gitea/customization/default.nix @@ -10,13 +10,56 @@ in catppuccin = pkgs.gitea-theme-catppuccin; }; - services.gitea.settings.ui = { - CUSTOM_EMOJIS = lib.concatStringsSep "," [ - "bruh" - "grr" - "huh" - "ohyeah" - ]; + services.gitea.settings = { + ui = { + REACTIONS = lib.concatStringsSep "," [ + "+1" + "-1" + "laugh" + "confused" + "heart" + "hooray" + "rocket" + "eyes" + "100" + "anger" + "astonished" + "no_good" + "ok_hand" + "pensive" + "pizza" + "point_up" + "sob" + "skull" + "upside_down_face" + "shrug" + "huh" + "bruh" + "okiedokie" + "grr" + ]; + + CUSTOM_EMOJIS = lib.concatStringsSep "," [ + "bruh" + "grr" + "huh" + "ohyeah" + ]; + }; + "ui.meta" = { + AUTHOR = "Programvareverkstedet"; + DESCRIPTION = "Bokstavelig talt programvareverkstedet"; + KEYWORDS = lib.concatStringsSep "," [ + "git" + "hackerspace" + "nix" + "open source" + "foss" + "organization" + "software" + "student" + ]; + }; }; systemd.services.gitea-customization = lib.mkIf cfg.enable { diff --git a/hosts/kommode/services/gitea/default.nix b/hosts/kommode/services/gitea/default.nix index 88f90efb..95fed500 100644 --- a/hosts/kommode/services/gitea/default.nix +++ b/hosts/kommode/services/gitea/default.nix @@ -133,48 +133,6 @@ in { AVATAR_MAX_ORIGIN_SIZE = 1024 * 1024 * 2; }; actions.ENABLED = true; - ui = { - REACTIONS = lib.concatStringsSep "," [ - "+1" - "-1" - "laugh" - "confused" - "heart" - "hooray" - "rocket" - "eyes" - "100" - "anger" - "astonished" - "no_good" - "ok_hand" - "pensive" - "pizza" - "point_up" - "sob" - "skull" - "upside_down_face" - "shrug" - "huh" - "bruh" - "okiedokie" - "grr" - ]; - }; - "ui.meta" = { - AUTHOR = "Programvareverkstedet"; - DESCRIPTION = "Bokstavelig talt programvareverkstedet"; - KEYWORDS = lib.concatStringsSep "," [ - "git" - "hackerspace" - "nix" - "open source" - "foss" - "organization" - "software" - "student" - ]; - }; }; dump = {