Commit graph

900 commits

Author SHA1 Message Date
NAHO
af4f2b5646
treewide: use mkTarget (batch 1) (#1342)
Link: https://github.com/nix-community/stylix/pull/1342

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-22 20:11:59 +02:00
awwpotato
f9a6a599d7
hyprland: fix hyprpaper enable condition (#1355)
Link: https://github.com/nix-community/stylix/pull/1355

Fixes: 7c66e (treewide: partially apply mkTarget)

Reviewed-by: Flameopathic <flameopathic@gmail.com>
2025-05-22 08:54:31 -07:00
Daniel Thwaites
c1ef1efd8f
qutebrowser: simplify dark mode setting (#1352) 2025-05-22 07:51:01 -07:00
awwpotato
6f67462b01
forge: use mkTarget 2025-05-22 07:44:20 -07:00
awwpotato
59c782eb99
console: use mkTarget 2025-05-22 07:44:20 -07:00
awwpotato
7b2e482da7
cava: use mkTarget 2025-05-22 07:44:20 -07:00
awwpotato
3d5c02f843
bat: use mkTarget 2025-05-22 07:44:20 -07:00
awwpotato
f4a4b2690c
avizo: use mkTarget 2025-05-22 07:44:19 -07:00
awwpotato
e0e61f8c97
cavalier: use mkTarget 2025-05-22 07:44:19 -07:00
awwpotato
68518231f3
zed: use mkTarget 2025-05-22 07:44:19 -07:00
awwpotato
019d9f11b3
zellij: use mkTarget 2025-05-22 07:44:19 -07:00
awwpotato
fea4b0ea58
xresources: use mkTarget 2025-05-22 07:44:19 -07:00
awwpotato
33c517c8ec
xfce: use mkTarget 2025-05-22 07:44:19 -07:00
awwpotato
e31bca3ee1
bspwm: use mkTarget 2025-05-22 07:44:19 -07:00
awwpotato
230705d5fb
gnome: don't apply hm on darwin (#1316) 2025-05-22 10:03:27 +01:00
awwpotato
043a43a0f9
ci: used maintained conflicts action (#1348) 2025-05-22 09:53:32 +01:00
awwpotato
02f3d00467
foliate: use mkTarget 2025-05-21 17:06:48 -07:00
awwpotato
18211a9f41
fish: use mkTarget 2025-05-21 17:06:48 -07:00
awwpotato
af11435723
lazygit: use mkTarget 2025-05-21 17:06:48 -07:00
awwpotato
89edd2f3c0
foot: use mkTarget 2025-05-21 17:06:48 -07:00
awwpotato
910dc0dc3e
btop: use mkTarget 2025-05-21 17:06:48 -07:00
awwpotato
81cb57a350
hyprlock: use mkTraget 2025-05-21 17:06:48 -07:00
awwpotato
26efa4fca0
helix: use mkTarget 2025-05-21 17:06:48 -07:00
awwpotato
614c12c5db
ci: fix tag for label merge conflicts (#1344)
Link: https://github.com/nix-community/stylix/pull/1344

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-21 15:05:03 -07:00
awwpotato
46caa4122c
ci: add workflow to label merge conflicts (#1269)
Add a workflow to label merge conflicts, making it more obvious when PRs
have a merge conflicts. This is also used by Home Manager and Nixpkgs.

Link: https://github.com/nix-community/stylix/pull/1269

Co-authored-by: pancho horrillo <pancho@pancho.name>
Reviewed-by: eveeifyeve <88671402+Eveeifyeve@users.noreply.github.com>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-21 23:43:50 +02:00
awwpotato
24d1438df4
halloy: use mkTarget 2025-05-21 13:58:49 -07:00
awwpotato
cde06bed94
gitui: use mkTarget 2025-05-21 13:58:49 -07:00
awwpotato
085767cc84
gedit: use mkTarget 2025-05-21 13:58:49 -07:00
awwpotato
e73f4c0832
chromium: use mkTarget 2025-05-21 13:58:49 -07:00
awwpotato
c32026eab2
mpv: use mkTarget (#1334)
Link: https://github.com/nix-community/stylix/pull/1334

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-21 20:57:36 +02:00
awwpotato
4ce349da56
alacritty: fix mkTarget usage (#1332)
Link: https://github.com/nix-community/stylix/pull/1332

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-05-21 10:14:34 -07:00
NAHO
d3fadda72a
treewide: add and partially apply mkTarget function (#1130)
Add and partially apply the mkTarget function to all appropriate
modules, providing a consistent target interface to minimize boilerplate
and automatically safeguard declarations related to disabled options.

The mkTarget function was first discussed in [1] ("extensive mkTarget
function").

[1]: https://github.com/danth/stylix/discussions/1009

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

Co-authored-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-05-21 16:21:43 +02:00
Flameopathic
7c66eda89e treewide: partially apply mkTarget
Uses the mkTarget function for Alacritty and Hyprland Home Manager targets
2025-05-21 09:43:42 -04:00
Flameopathic
c4fa684471 stylix: add mkTarget function
Add the mkTarget function, providing a consistent target interface to minimize boilerplate
and automatically safeguard declarations related to disabled options.

The mkTarget function was first discussed in [1] ("extensive mkTarget
function").

[1]: https://github.com/danth/stylix/discussions/1009
2025-05-21 09:39:49 -04:00
NAHO
42b1521816
stylix: improve how discord testbed is disabled (#1326)
Link: https://github.com/nix-community/stylix/pull/1326

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-21 11:09:50 +02:00
Matt Sturgeon
2b176d49de
discord: use new enable option for testbed 2025-05-21 11:07:01 +02:00
Matt Sturgeon
a2236aa290
stylix: use a cheaper module eval for the enable option
The `stylix.testbed.enable` option is needed to determine which testbeds
to include in flake outputs. However evaluating a NixOS system is
expensive, and significantly impacts the performance of `nix flake show`.

We work around this issue by adding minimal configuration, which
evaluates the testbed module on its own, without any nixos modules.

This has plenty of downsides, but we're unlikely to run into any of them
here.

Potential future issues:

1. A testbed module requiring a non-standard module arg.
   This could be solved by adding stubs to `_module.args`.

2. The enable option depending on an overlayed `pkgs` instance.
   This could be solved by implementing the `nixpkgs.overlays` option.

3. The enable option depending on another Stylix or NixOS option.
   This cannot be supported without massive performance hits.
2025-05-21 11:06:51 +02:00
NAHO
dfcab7476d
stylix: revert improval of how discord testbed is disabled (#1291)
Revert the improval of how discord testbed is disabled to get the proper
commit structure into the commit history.

Reverts: 5113479d69 ("stylix: improve how discord testbed is disabled (#1291)")
2025-05-21 11:06:06 +02:00
Matt Sturgeon
5113479d69
stylix: improve how discord testbed is disabled (#1291)
Link: https://github.com/nix-community/stylix/pull/1291

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-21 10:58:22 +02:00
awwpotato
4830942fa2
treewide: remove unnecessary builtins prefix (#1322) 2025-05-21 08:51:24 +01:00
Matt Sturgeon
94010d2118
stylix: add testbed enable option
When disabled, the testbed will not be used.
2025-05-20 21:11:40 +01:00
Matt Sturgeon
f891cf742f
stylix: refactor textbed.nix autoload
Use `lib.pipe` and `builtins.concatMap`
2025-05-20 21:11:39 +01:00
Matt Sturgeon
1f4de333d7
stylix: use concatMap in testbeds.nix 2025-05-20 21:11:39 +01:00
Matt Sturgeon
10e04b2491
stylix: use concatMapStringSep in testbed.nix 2025-05-20 21:11:39 +01:00
awwpotato
69b3dd05e6
stylix: bump release to 25.11 (#1317)
Closes: https://github.com/nix-community/stylix/issues/1315
Link: https://github.com/nix-community/stylix/pull/1317

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-20 19:27:39 +00:00
NAHO
c7feebc34a
qutebrowser: remove lib.mkDefault option declaration (#1227)
Link: https://github.com/nix-community/stylix/pull/1227

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-05-20 19:50:04 +02:00
awwpotato
43a652de77
alacritty: fix bright-yellow usage, adopt (#1280)
Link: https://github.com/nix-community/stylix/pull/1280

Reviewed-by: musjj <72612857+musjj@users.noreply.github.com>
2025-05-20 09:27:23 -07:00
awwpotato
fb9c22056f
doc: move to doc directory (#1272) 2025-05-20 10:26:52 +01:00
Daniel Thwaites
f8833c5e0c
treewide: update documentation links (#1314)
Link: https://github.com/nix-community/stylix/pull/1314

Co-authored-by: pancho horrillo <pancho@pancho.name>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-19 19:30:20 +02:00
wawwior
2e58606c9c
flake: update and unlock tinted-kitty input (#1308)
Update and unlock the tinted-kitty input because the issue from commit
f95022bb6e ("stylix: downgrade and lock tinted-kitty input (#589)")
seems to have resolved itself.

Link: https://github.com/nix-community/stylix/pull/1308

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-19 18:53:21 +02:00