From ec4d1ce9da22da964cef8a77795dc32011ebbb55 Mon Sep 17 00:00:00 2001 From: dastarruer Date: Thu, 19 Feb 2026 17:23:23 -0400 Subject: [PATCH] sioyek: init (#2199) Closes: https://github.com/nix-community/stylix/issues/2148 Link: https://github.com/nix-community/stylix/pull/2199 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- generated/all-maintainers.nix | 5 +++++ modules/sioyek/hm.nix | 31 ++++++++++++++++++++++++++++++ modules/sioyek/meta.nix | 6 ++++++ modules/sioyek/testbeds/sioyek.nix | 17 ++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 modules/sioyek/hm.nix create mode 100644 modules/sioyek/meta.nix create mode 100644 modules/sioyek/testbeds/sioyek.nix diff --git a/generated/all-maintainers.nix b/generated/all-maintainers.nix index d990faa1..10b6591f 100644 --- a/generated/all-maintainers.nix +++ b/generated/all-maintainers.nix @@ -113,6 +113,11 @@ matrix = "@danth:danth.me"; name = "Daniel Thwaites"; }; + dastarruer = { + github = "dastarruer"; + githubId = 173855353; + name = "dastarruer"; + }; gideonwolfe = { email = "wolfegideon@gmail.com"; github = "gideonwolfe"; diff --git a/modules/sioyek/hm.nix b/modules/sioyek/hm.nix new file mode 100644 index 00000000..b5548138 --- /dev/null +++ b/modules/sioyek/hm.nix @@ -0,0 +1,31 @@ +{ mkTarget, lib, ... }: +mkTarget { + config = + { colors }: + { + programs.sioyek.config = with colors.withHashtag; { + startup_commands = "toggle_custom_color"; + background_color = base00; + text_highlight_color = base0A; + visual_mark_color = base02; + search_highlight_color = base0A; + link_highlight_color = base0D; + synctex_highlight_color = base0B; + highlight_color_a = base0A; + highlight_color_b = base0B; + highlight_color_c = base0D; + highlight_color_d = base08; + highlight_color_e = base0E; + highlight_color_f = base09; + highlight_color_g = base0A; + custom_background_color = base00; + custom_text_color = base05; + ui_text_color = base05; + ui_background_color = base01; + ui_selected_text_color = base05; + ui_selected_background_color = base02; + status_bar_color = base01; + status_bar_text_color = base05; + }; + }; +} diff --git a/modules/sioyek/meta.nix b/modules/sioyek/meta.nix new file mode 100644 index 00000000..9975c83e --- /dev/null +++ b/modules/sioyek/meta.nix @@ -0,0 +1,6 @@ +{ lib, ... }: +{ + name = "Sioyek"; + homepage = "https://sioyek.info"; + maintainers = [ lib.maintainers.dastarruer ]; +} diff --git a/modules/sioyek/testbeds/sioyek.nix b/modules/sioyek/testbeds/sioyek.nix new file mode 100644 index 00000000..2b6a1d3e --- /dev/null +++ b/modules/sioyek/testbeds/sioyek.nix @@ -0,0 +1,17 @@ +{ lib, pkgs, ... }: +let + package = pkgs.sioyek; +in +{ + stylix.testbed.ui.application = { + name = "sioyek"; + inherit package; + }; + + home-manager.sharedModules = lib.singleton { + programs.sioyek = { + enable = true; + inherit package; + }; + }; +}