Commit graph

12 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
a4ffbc20ea
modules: flatten single-attribute set declarations 2025-12-10 14:42:30 +01:00
Karun Sandhu
8dd18dd395 hyprlock: fix setting background 2025-05-23 08:15:07 -07:00
awwpotato
81cb57a350
hyprlock: use mkTraget 2025-05-21 17:06:48 -07:00
awwpotato
ff9ae322bc
treewide: clean up with and stuff (#975)
Fixes #973
2025-03-18 12:10:02 +00:00
David Neugebauer
2111394586
Convert image path to string for Hyprlock fixing #918 (#925)
Closes: https://github.com/danth/stylix/issues/918
Fixes: c8e4a0d218 ("treewide: optionalize stylix.image option (#717)")

Tested-by: https://github.com/Stormfox2
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-27 09:11:20 +01:00
Flameopathic
2c4b5bec36
hyprlock: fix background color definition (#906)
Fixes: c8e4a0d218 ("treewide: optionalize stylix.image option (#717)")
2025-02-24 16:35:13 +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
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
Morgan Jones
f8699483e4
hyprlock: use a string instead of a path for background.path (#633)
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-11-18 10:08:43 +01:00
Oscar Schwarz
f361071a1b
hyprlock: init (#619)
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-11-14 08:53:56 +01:00