Commit graph

533 commits

Author SHA1 Message Date
NAHO
168306ce7f
ci: lock and update Ubuntu runner in Backport workflow (#752)
Link: https://github.com/danth/stylix/pull/752
2025-01-08 02:34:19 +01:00
NAHO
a8399897e8
treewide: remove redundant empty line in testbeds (#760)
Link: https://github.com/danth/stylix/pull/760
2025-01-08 02:30:39 +01:00
awwpotato
6d9867604e
treewide: reduce indentation level with lib.singleton (#754)
Reduce the indentation level with lib.singleton, as recommended by RFC 0166. [1]

[1]: 25c3f52463/rfcs/0166-nix-formatting.md (singleton-lists)

Link: https://github.com/danth/stylix/pull/754

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-08 02:01:45 +01:00
Kilian Mio
5c84f02fcf
regreet: respect dark mode and unset extraCss for custom styling (#723)
Respect the stylix.polarity option and unset programs.regreet.extraCss
to enable custom styling.

This partially resolves the "ReGreet not using GTK or cursor theme" [1]
issue.

[1]: https://github.com/danth/stylix/issues/690

Link: https://github.com/danth/stylix/pull/723

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-07 19:35:34 +01:00
NAHO
8be9e8ad9a
ci: update Ubuntu runner to ubuntu-24.04 in Backport workflow
Fixes: fe72c2306f ("ci: update Ubuntu runner to ubuntu-24.04")
2025-01-06 23:29:45 +01:00
NAHO
0db7d025ed
ci: lock Ubuntu runner to ubuntu-22.04 in Backport workflow
Fixes: 1aa931f6f1 ("ci: lock workflow dependencies to increase reproducibility")
2025-01-06 23:27:19 +01:00
bricked
1d7b70ed9e
firefox: add firefoxGnomeTheme.enable option (#702)
Link: https://github.com/danth/stylix/pull/702

Tested-by: Daniel Thwaites <danth@danth.me>
Approved-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-06 23:18:49 +01:00
NAHO
284c5b0357
ci: run CI on PRs and limit push event to protected branches (#751)
Run the CI on PRs, while preventing it from running twice for non-fork
PRs by limiting the push event to protected branches. [1]

This restores the workflow trigger that was accidentally modified in
commit 2b85a56235 ("ci: simplify workflows").

[1]: https://github.com/danth/stylix/pull/749#issuecomment-2573437938
2025-01-06 21:39:22 +00:00
bricked
a6b53aa677
gnome-text-editor: init (#747)
Initialize the GNOME Text Editor with the Gedit module theme.

Link: https://github.com/danth/stylix/pull/747

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-06 16:57:17 +01:00
Floryan Simar
b47ef3b856
zed: init (#620)
Closes: https://github.com/danth/stylix/issues/348
Link: https://github.com/danth/stylix/pull/620

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-06 16:21:27 +01:00
NAHO
7dfcdb4101
treewide: add developer shell and pre-commit hooks and improve workflows (#519)
Add developer shells with direnv integration and the deadnix, hlint,
nixfmt-rfc-style, statix, stylish-haskell, typos, and yamllint
pre-commit hooks.

Ensure 'nix flake check' works as expected and add the nix-flake-check
package, which is a parallelized alternative to 'nix flake check'.

Improve and update the GitHub workflows.

Closes: https://github.com/danth/stylix/issues/236
Link: https://github.com/danth/stylix/pull/519

Approved-by: Daniel Thwaites <danth@danth.me>
2025-01-04 18:26:20 +01:00
NAHO
ad64260a75
treewide: add and apply nixfmt pre-commit hook
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:48:26 +01:00
NAHO
807c81894e
stylix: add ghc developer shell
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:53 +01:00
NAHO
708b2147c0
stylix: add hlint pre-commit hook
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
439c6cf24e
treewide: add and apply stylish-haskell
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
4ceede7504
ci: prevent the Check workflow from running duplicated checks outputs
Prevent the Check workflow from running duplicated checks outputs.

The jq query should now be faster and arguably more readable.

Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
d3bdbf0c5b
treewide: add and apply yamllint pre-commit hook
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
5ab7d0345a
treewide: add and apply typos pre-commit hook
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
2b85a56235
ci: simplify workflows
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
fe72c2306f
ci: update Ubuntu runner to ubuntu-24.04
Link: https://github.com/actions/runner-images/issues/10636
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
1aa931f6f1
ci: lock workflow dependencies to increase reproducibility
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
a0838923e4
stylix: add nix-flake-check package
Add the nix-flake-check package, which is a parallelized alternative to
'nix flake check', as it is not yet natively parallel:

> In the near future, we will make more Nix subcommands multi-threaded,
> such as 'nix flake check'.
>
> -- Eelco Dolstra, https://determinate.systems/posts/parallel-nix-eval

On a 16-threaded machine, 'nix run .#nix-flake-check' runs three times
faster (74s vs. 243s) than 'nix flake check'.

Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
e56d332ca3
stylix: add packages to checks output
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
b3230ef398
stylix: integrate pre-commit hooks into developer shell
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
0d0af5f442
ci: consolidate Build and Lint workflows into single Check workflow
Consolidate the separate Build and Lint workflows into a unified Check
workflow, as linting is now integrated into the build process.

Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
6085560893
stylix: add deadnix and statix pre-commit hooks
Add the deadnix and statix pre-commit hooks used in the Lint GitHub
workflow.

Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
3c54cb3384
treewide: ignore unused arguments detected by deadnix
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
6ef37ca6aa
treewide: leverage direnv to automatically enter developer shell
Leverage direnv [1] to automatically enter the developer shell upon
entering the project directory after running 'direnv allow'.

[1]: https://direnv.net

Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
703f49aaca
treewide: add developer shell
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
Daniel Thwaites
7c8874b311
doc: remove "below" which was moved to a separate page (#727) 2025-01-04 15:55:13 +00:00
Daniel Thwaites
18fd600cd2
doc: draw attention to release branches (#726)
Using the wrong branch is a very common cause of questions, due to it
not being mentioned anywhere in the documentation.
2025-01-04 15:48:43 +00:00
NAHO
2256b7d74b
micro: init (#716)
Initialize the micro module.

Extending the 'simple' theme is possible by adding 'include "simple"' to the
user configuration. [1]

[1]: https://github.com/danth/stylix/issues/714#issuecomment-2569808086

Closes: https://github.com/danth/stylix/issues/714
Link: https://github.com/danth/stylix/pull/716

Approved-by: https://github.com/LemmusLemmus
Approved-by: https://github.com/matkijahenkilo
2025-01-04 16:34:27 +01:00
NAHO
fe25ebfdc9
doc: update copyright year (#715) 2025-01-04 14:33:14 +00:00
Didn't read the style guide
e0a41d3a25
kde: replace systemd unit with AutostartScript for theme application (#708)
Replace the systemd unit with a more robust AutostartScript for theme
application during Plasma startup, ensuring D-Bus and session
availability without breaking Home Manager activation.

Closes: https://github.com/danth/stylix/issues/340
Closes: https://github.com/danth/stylix/issues/350
Closes: https://github.com/danth/stylix/issues/422
Link: https://github.com/danth/stylix/pull/708

Co-authored-by: rkuklik <rkuklik@expect-it.cz>
Tested-by: lordkekz <lordkekz@lkekz.de>
Tested-by: rkuklik <rkuklik@expect-it.cz>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-03 20:50:01 +01:00
Sergei Zimmerman
0ce2a52dec
yazi: add testbed, resolve 0.4.0 breaking changes, and improve names (#719)
Add a testbed and resolve the 0.4.0 breaking changes [2] [3] [4].

Migrate the highlight colors to mnemonics with the following script to
improve readability and simplify the process of reusing upstream
templates [4]:

    colors_base=(
      "base08" "base09" "base0A" "base0B" "base0C" "base0D" "base0E"
      "base0F"
    )

    colors_name=(
      "red" "orange" "yellow" "green" "cyan" "blue" "magenta" "brown"
    )

    for i in "${!colors_base[@]}"; do
      sed \
        --in-place \
        "s/${colors_base[i]}/${colors_name[i]}/g" \
        modules/yazi/hm.nix
    done

[1]: https://github.com/sxyazi/yazi/issues/1772
[2]: https://github.com/sxyazi/yazi/pull/1927
[3]: https://github.com/sxyazi/yazi/pull/1953
[4]: https://github.com/yazi-rs/flavors/blob/main/scripts/catppuccin/template.toml

Closes: https://github.com/danth/stylix/issues/604
Closes: https://github.com/danth/stylix/issues/683
Link: https://github.com/danth/stylix/pull/719

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-03 01:27:46 +01:00
Mirza Arnaut
6eb0597e34
ghostty: init (#703)
Link: https://github.com/danth/stylix/pull/703

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-02 20:01:16 +01:00
NAHO
90f95c5d84
stylix: point nixpkgs input to more conventional nixos-unstable ref (#712) 2025-01-02 17:55:30 +00:00
Louis Dalibard
911c07f40f
fctix5: init (#718)
Link: https://github.com/danth/stylix/pull/718

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-01 21:48:24 +01:00
hazel
f48cab39ba
doc: document imageScalingMode options (#709)
Document the imageScalingMode options according to swaybg, which should
be mostly universal.

Link: https://github.com/danth/stylix/pull/709

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-31 18:05:32 +01:00
Daniel Thwaites
a4ed4168fb
foot: update desktop file name in testbed (#707)
This was recently changed upstream [1].

[1]: c8185aec1d
2024-12-30 03:13:08 +01:00
Daniel Thwaites
71eea3f02a
treewide: add application testbeds (#612)
Extend testbeds with individual GUI applications beyond DEs, offering the
following benefits:

- Preview PRs without changing your real configuration by running:

    nix run github:«owner»/«repository»/«branch»#testbed-«application»-«polarity»'

- Unlike local installations, testbeds reset their filesystem between rebuilds,
  ensuring each test simulates a fresh installation to identify cases requiring
  manual steps for module effectiveness.

- Enhances CI to test that configurations evaluate correctly when a module is
  enabled. The extent to which this confirms that the configuration actually
  works can vary depending on the upstream implementation of the module.

The application testbeds are currently based on GNOME but could be replaced with
a lightweight compositor like Cage [1] in the future. GNOME was chosen for the
time being due to preconfigured services, such as a secret service [2], which
some applications require.

[1]: https://github.com/cage-kiosk/cage?tab=readme-ov-file#cage-a-wayland-kiosk
[2]: https://specifications.freedesktop.org/secret-service-spec/latest
2024-12-29 22:51:00 +00:00
bricked
963e77a3a4
gtk: add support for theming Flatpak applications (#693)
Add support for theming Flatpak applications by making the GTK theme
accessible to them. [1]

[1]: https://itsfoss.com/flatpak-app-apply-theme

Closes: https://github.com/danth/stylix/issues/465
Link: https://github.com/danth/stylix/pull/693

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-26 23:53:19 +01:00
bricked
079fecebad
firefox: leverage Home Manager's mkFirefoxModule pattern (#695)
Leverage Home Manager's mkFirefoxModule pattern introduced in commit
792757f643ce [1] ("firefox: support firefox derivatives").

[1]: 792757f643

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-25 19:24:28 +01:00
FirelightFlagboy
a70154ec03
doc: resolve 'magick convert' deprecation warning (#697)
Resolve the following 'magick convert' deprecation warning:

    WARNING: The convert command is deprecated in IMv7, use "magick"
    instead of "convert" or "magick convert"

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-25 18:43:53 +01:00
NAHO
4d87b96cec
stylix: support float font sizes (#692)
Link: https://github.com/danth/stylix/pull/692

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-22 17:45:04 +01:00
musjj
aec7be45cf xresources: convert font size to a string
A hack necessary because of a home-manager limitation. It works because
numbers and strings are serialized the same way for .Xresources. It
should be reverted after this issue is addressed upstream.
2024-12-22 23:09:50 +07:00
bricked
be3a33d589
cava: add rainbow theme option (#638)
Link: https://github.com/danth/stylix/pull/638

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-22 17:09:05 +01:00
musjj
75f38f9edf stylix: use floats for font sizes 2024-12-22 23:08:26 +07:00
musjj
4f489c6393
vscode: don't round font sizes (#691)
Link: https://github.com/danth/stylix/pull/691

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-22 00:04:56 +01:00
Devin
a2d66f2547
treewide: extend stylix.imageScalingMode support
Add stylix.imageScalingMode support to all modules except:

- hyprlock
- hyprpaper
- kde
- lightdm
- sway

Closes: https://github.com/danth/stylix/issues/677
Link: https://github.com/danth/stylix/pull/678

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2024-12-18 15:15:36 +01:00