Commit graph

37 commits

Author SHA1 Message Date
NAHO
dfc859f54d
treewide: optionalize mkTarget's humanName and name arguments
Optionalize mkTarget's 'humanName' and 'name' arguments by inferring
'humanName' from the 'name' attribute in the /modules/<MODULE>/meta.nix
file, and 'name' from the /modules/<NAME>/ directory name.

Inferring the 'humanName' and 'name' arguments ensures consistency and
reduces boilerplate.

The 'humanName' and 'name' arguments are optionalized instead of removed
because complex modules generating target derivations need to
distinguish between them.

Closes: https://github.com/nix-community/stylix/issues/1661
2025-12-10 14:48:37 +01:00
NAHO
16df6b8448
treewide: rename mkTarget's configElements and extraOptions options
Rename mkTarget's 'configElements' argument to 'config' and
'extraOptions' to 'options' to provide a more transparent interface with
the underlying Nixpkgs module system.
2025-12-10 14:48:20 +01:00
NAHO
2e2e96f6b0
treewide: remove blank lines around 'let', 'in', and function arguments (#1700)
Link: https://github.com/nix-community/stylix/pull/1700

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-19 10:41:36 -07:00
Mateus Auler
8c854fe383
stylix: allow choosing testbed desktop (#1222)
Allow choosing the testbed desktop, ideally as a temporary solution
until migrating to the cage environment.

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

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-16 15:43:02 +02:00
awwpotato
dea0337e0b
stylix: restrict access to config while using mkTarget (#1368)
Link: https://github.com/nix-community/stylix/pull/1368

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-04 19:08:21 +02:00
awwpotato
2b231cdc9b
treewide: use config in literalExpressions (#1517)
Link: https://github.com/nix-community/stylix/pull/1517

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-19 21:51:33 +02:00
Matt Sturgeon
289356d031
treewide: use mkEnableTargetWith for dynamic conditions
Ensure enable options with dynamic `autoEnable` are documented
correctly.
2025-06-04 15:48:14 +01:00
Flameopathic
17398c4fce treewide: name default testbeds 2025-05-24 08:53:58 -04: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
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
e2fe2df9b0
doc: restructure module rendering (#1083) 2025-05-18 14:09:50 +01:00
NAHO
6d16807fc5
Merge branch 'master' into treewide-init-maintainers 2025-04-13 19:59:13 +02:00
Flameopathic
82f67a36eb
doc: align module capitalization (#1115)
Closes: https://github.com/danth/stylix/issues/1084
Link: https://github.com/danth/stylix/pull/1115

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: awwpotato <153149335+awwpotato@users.noreply.github.com>
2025-04-10 08:45:51 +02:00
Flameopathic
a2f8840bed
hyprland: disable default wallpaper when hyprpaper is enabled (#1120)
Co-authored-by: awwpotato <153149335+awwpotato@users.noreply.github.com>

Closes: https://github.com/danth/stylix/issues/1119
2025-04-08 15:50:43 +00:00
skoove
6421b5c2d2
hyprland: add skoove as maintainer (#1030) 2025-03-20 08:40:27 +01:00
NAHO
a29a420bb2
treewide: add naho as maintainer (#1007) 2025-03-17 02:06:43 +00:00
awwpotato
e43eb4e2a7
stylix: init module maintainers framework (#977)
Initialize module maintainers framework to streamline the future
population of module maintainers [1].

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

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

Reviewed-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-14 19:29:51 +01:00
Flameopathic
c8e4a0d218
treewide: optionalize stylix.image option (#717)
Optionalize the stylix.image option when stylix.base16Scheme is set,
making the following Stylix configurations valid:

    [
      // Now it possible to set 'stylix.image = null', if
      // stylix.base16Scheme is set.
      {
        base16Scheme = /* ... */;
      }

      // This configuration was already possible.
      {
        image = /* ... */;
      }

      // This configuration was already possible.
      {
        base16Scheme = /* ... */;
        image = /* ... */;
      }
    ]

Closes: https://github.com/danth/stylix/issues/200
Closes: https://github.com/danth/stylix/issues/442
Link: https://github.com/danth/stylix/pull/717

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-02-24 15:13:57 +01:00
NAHO
211a8440e7
stylix: support multiple testbeds per module (#858)
Support multiple testbeds per module with
/modules/<MODULE>/testbeds/<TESTBED>.nix, while validating various
invariants.
2025-02-17 12:56:46 +00: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
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
c6547e2b26
hyprland: remove with statement
Link: https://github.com/danth/stylix/pull/501
2024-12-06 19:30:28 +01:00
NAHO
5282744c34
hyprland: reduce local variable scopes
Link: https://github.com/danth/stylix/pull/501
2024-12-06 19:29:54 +01:00
NAHO
638f30a67e
hyprland: inline single-use variable
Link: https://github.com/danth/stylix/pull/501
2024-12-06 19:28:45 +01:00
NAHO
47f1504b45
hyprland: structurally separate unconditional and conditional settings
Link: https://github.com/danth/stylix/pull/501
2024-12-06 19:27:02 +01:00
NAHO
16e4ca7fa7
hyprland: add hyprpaper.enable option
Closes: https://github.com/danth/stylix/issues/499
Link: https://github.com/danth/stylix/pull/501
2024-12-06 19:27:02 +01:00
Daniel Thwaites
cf5be812bd
hyprland: add testbed (#611)
There are currently some graphical bugs caused by the VM. [1]

[1]:  https://github.com/hyprwm/Hyprland/issues/1056

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-11-17 14:10:42 +01:00
diniamo
5ab1207b2f
hyprland: adapt breaking changes (#610)
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>

Fixes: f71c2effed ("hyprland: revert attempt to address unavailable Hyprland breaking change (#608)")
2024-11-15 08:56:26 +01:00
NAHO
f71c2effed
hyprland: revert attempt to address unavailable Hyprland breaking change (#608)
Revert commit 762c07ee10 ("hyprland: adapt breaking changes (#605)"),
which falsely attempted to address a Hyprland breaking change [1] which
is not yet available as a Hyprland release or Nixpkgs package, and
therefore not available through Stylix's inputs.nixpkgs input.

To address the future breaking change, update Stylix's inputs.nixpkgs
input after the next Hyprland release is included in
nixpkgs/nixos-unstable.

[1]: d1638a09ba

Link: https://github.com/danth/stylix/pull/608
2024-11-07 17:53:53 +00:00
diniamo
762c07ee10
hyprland: adapt breaking changes (#605)
d1638a09ba
2024-11-06 20:17:03 +00:00
Daniel Thwaites
c95de36252
hyprland: only enable hyprpaper when hyprland is installed (#544)
See https://github.com/danth/stylix/issues/542#issuecomment-2324323870

Closes #542
2024-09-02 11:39:50 +01:00
sdaqo
0fc4e9f144
hyprland: add 'groupbar' colors (#446) 2024-06-23 16:20:48 +02:00
Ed Roberts Rayne
f13c946181
hyprpaper: init (#377)
Initialize the 'hyprpaper' module.

In the future, it might be possible to 'unload' the one-off wallpaper to reduce
the running memory usage [1]:

> Preload does exactly what it says. It loads the entire wallpaper into
> memory. This can result in around 8 - 20MB of mem usage. It is not
> recommended to preload every wallpaper you have, as it will be a)
> taking a couple seconds at the beginning to load and b) take 100s of
> MBs of disk and RAM usage.
>
> Preload is meant only for situations in which you want a wallpaper to
> switch INSTANTLY when you issue a wallpaper keyword (e.g. wallpaper
> per workspace)
>
> In any and all cases when you don't mind waiting 300ms for the
> wallpaper to change, consider making a script that:
>  - preloads the new wallpaper
>  - sets the new wallpaper
>  - unloads the old wallpaper (to free memory)
>
> -- Hyprpaper [2]

[1]: https://github.com/danth/stylix/issues/408
[2]: 678d0e8959/README.md (L103-L111)

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-06-17 16:30:35 +02:00
Jalil David Salamé Messina
7682713f6a
stylix: add 'stylix.enable' option (#244)
Add a 'stylix.enable' option to enable or disable all Stylix modules in
order to resolve issues similar to [2].

To align with the default 'lib.mkEnableOption' [1] behavior,
'stylix.enable' defaults to 'false'.

BREAKING CHANGE: Stylix is disabled by default. To enable it, use:

    stylix.enable = true;

[1]: https://github.com/NixOS/nixpkgs/blob/23.11/lib/options.nix#L91-L105
[2]: https://github.com/danth/stylix/issues/216

Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
Co-authored-by: Jalil David Salamé Messina <jalil.salame@gmail.com>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-06-10 11:52:47 +02:00
diniamo
f0ddd45fbe
treewide: change window manager style guide (#414) 2024-06-08 16:17:58 +01:00
Airradda
7a7987c782
Fix group variable changes in Hyprland module (#169)
This resolve the issues introduced in hyprwm/Hyprland#3522, which
moved group variables out of general and into their own section.
2023-10-28 14:27:10 +01:00
Basil Keeler
c3c9f4784b
Add support for Hyprland (#145)
Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
2023-09-10 19:58:13 +00:00