Commit graph

255 commits

Author SHA1 Message Date
NAHO
cb6bbed75e
stylix/mk-target: rename normalizeConfig function to normalize (#2081)
Rename the normalizeConfig function to normalize to generalize the name
beyond the specific config and options module arguments, following
commit 1272e6858e ("stylix/mk-target: rename mkConfig function to
callModule").

Fixes: 6153df31ce ("stylix/mk-target: normalize options argument identically to config")
Link: https://github.com/nix-community/stylix/pull/2081
2025-12-10 09:15:11 -08:00
NAHO
6153df31ce
stylix/mk-target: normalize options argument identically to config
Normalize the options argument identically to config to provide a
coherent and extensible options interface.
2025-12-10 14:48:41 +01:00
NAHO
953c3fb01e
stylix/mk-target: generate options for configuring safeguarded arguments
Generate targets.${target}.${argument}.enable and
targets.${target}.${argument}.override options for disabling and
configuring safeguarded arguments on a target level.
2025-12-10 14:48:41 +01:00
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
76d05fd9c0
stylix/mk-target: rename generalConfig argument to unconditionalConfig
Rename the generalConfig argument to unconditionalConfig to better imply
the intentional lack of safeguarding.
2025-12-10 14:42:30 +01:00
NAHO
f7b554dea9
stylix/mk-target: polish implementation and improve error reporting
Polish the mkTarget implementation to improve error reporting and
simplify future enhancements.

Configuration elements can now recursively resolve to paths.
2025-12-10 14:42:30 +01:00
NAHO
1272e6858e
stylix/mk-target: rename mkConfig function to callModule
Rename the mkConfig function to callModule to generalize the name beyond
the specific config and options module arguments.

Fixes: dea0337e0b ("stylix: restrict access to config while using mkTarget (#1368)")
2025-12-10 14:42:30 +01:00
NAHO
9afd8230cd
stylix/mk-target: document imports argument
Fixes: 093087e969 ("stylix: add imports to mkTarget (#1363)")
2025-12-10 14:42:30 +01:00
NAHO
25354cc88b
stylix/mk-target: sort optional arguments 2025-12-10 14:42:30 +01:00
0xda157
3a332459f4
treewide: use strict mode for nixfmt (#2041)
Link: https://github.com/nix-community/stylix/pull/2041
Link: https://github.com/nix-community/stylix/pull/1976#discussion_r2539186937

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-12-05 16:05:09 -08:00
stylix-automation[bot]
1acea29f68
flake: update all inputs (#2035)
Link: https://github.com/nix-community/stylix/pull/2035

Reviewed-by: 0xda157 <da157@voidq.com>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Co-authored-by: 0xda157 <da157@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-12-03 21:59:32 +01:00
NAHO
71054adbc3
stylix/testbed/modules/application: add notification progress bar (#2021)
Some checks failed
Check / aarch64-darwin (push) Has been cancelled
Check / aarch64-linux (push) Has been cancelled
Check / x86_64-darwin (push) Has been cancelled
Check / x86_64-linux (push) Has been cancelled
Label Merge Conflicts / conflicts (push) Has been cancelled
Documentation / docs (push) Has been cancelled
Link: https://github.com/nix-community/stylix/pull/2021

Reviewed-by: 0xda157 <da157@voidq.com>
2025-12-01 20:14:00 -08:00
0xda157
89f99bfeb8
vicinae: init (#1994)
Link: https://github.com/nix-community/stylix/pull/1994

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-11-21 22:34:06 +01:00
Georgiy Shevoroshkin
b9b0501839
gdu: init (#1995)
Link: https://github.com/nix-community/stylix/pull/1995

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-11-21 19:13:27 +01:00
Konrad Malik
c27bc6e9f9
stylix/home-manager-integration: fix evaluation on darwin (#1973)
Closes: https://github.com/nix-community/stylix/issues/1981
Link: https://github.com/nix-community/stylix/pull/1973

Reviewed-by: 0xda157 <da157@voidq.com>
Approved-by: https://github.com/pastadudes
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-11-20 15:43:32 +01:00
Zeremonienmeister Berber Aab
c3f66a0d6b
xresources: add berber to maintainers 2025-11-20 10:42:40 +01:00
Vidhan Bhatt
3013f98e28
ghostty: add vidhanio as maintainer (#1992)
Link: https://github.com/nix-community/stylix/pull/1992

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-11-19 23:19:06 +01:00
jamie
ab29ae14d7
limine: init (#1952)
Closes: https://github.com/nix-community/stylix/issues/991
Link: https://github.com/nix-community/stylix/pull/1952

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: 0xda157 <da157@voidq.com>
2025-11-19 19:48:07 +01:00
NAHO
dcf49c0c55
stylix/testbed/default: deprecate pkgs.system
Deprecate pkgs.system with pkgs.stdenv.hostPlatform.system, following
upstream commit [1] ("aliases: add warnings to deprecated system
definitions").

[1]: 90cb787644

Fixes: efd80454b4 ("flake: update nixpkgs input")
2025-11-17 16:08:02 +01:00
NAHO
628e990dde
treewide: apply Nixpkgs update
Fixes: efd80454b4 ("flake: update nixpkgs input")

Co-authored-by: 0xda157 <da157@voidq.com>
2025-11-17 16:08:01 +01:00
Konrad Malik
b68e822068
stylix/home-manager-integration: add missing icons integration (#1941)
Closes: https://github.com/nix-community/stylix/issues/1933
Link: https://github.com/nix-community/stylix/pull/1941

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-11-16 18:43:10 +01:00
khas-amir
3f70c58555
hyprpanel: init (#1916)
Closes: https://github.com/nix-community/stylix/issues/725
Link: https://github.com/nix-community/stylix/pull/1916

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-10-02 13:29:54 +02:00
Michael Golden
126e6c7625
obsidian: init (#1918)
Closes: https://github.com/nix-community/stylix/issues/1903
Link: https://github.com/nix-community/stylix/discussions/452
Link: https://github.com/nix-community/stylix/pull/1918

Reviewed-by: https://github.com/TheColorman
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-10-01 09:53:23 +02:00
NAHO
5b9710eee9
treewide: remove optional builtins prefixes from prelude functions (#1915)
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd --type file --exec-batch sed --in-place --regexp-extended "
      s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
      ))\>/\1/g
    "

    nix fmt

This patch is heavily inspired by [1] ("treewide: remove optional
builtins prefixes from prelude functions").

[1]: https://github.com/NixOS/nixpkgs/pull/444432

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

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-09-28 11:09:21 +02:00
NAHO
484819a16f
stylix/testbed/default: simplify attribute set declaration (#1906)
Link: https://github.com/nix-community/stylix/pull/1906
Fixes: c32c82e460 ("zen-browser: init (#1694)")

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-09-24 16:52:49 -07:00
Flameopathic
526c882800
nixvim: add standalone testbed (#1902)
Link: https://github.com/nix-community/stylix/pull/1902

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-09-24 14:17:30 +02:00
eveeifyeve
1a83d26d4c
stylix: add config.lib.stylix.{mkHexColor,mkOpacityHexColor} functions
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-09-08 18:55:38 +02:00
awwpotato
0e7b897c73
flake: update all inputs (#1881)
Update all inputs, rename the KDE platform, and apply formatter changes
by running the following commands:

    biome check --unsafe --write
    pre-commit run --all-files

Rename the KDE platform, following local commit f47c0edcf7 ("treewide:
remove Plasma 5 support dropped upstream (#1860)") and upstream commits
[1] ("nixos/treewide: clean up some more references to deleted qt5
things") and [2] ("qt: deprecate kde6").

[1]: 31d5c4e753
[2]: 1e759786e5

Closes: https://github.com/nix-community/stylix/issues/1865
Link: https://github.com/nix-community/stylix/pull/1866
Link: https://github.com/nix-community/stylix/pull/1881

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Co-authored-by: Samuel Meenzen <samuel@meenzen.net>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-09-05 22:22:06 +02:00
NAHO
2567b92466
fontconfig: leverage lib.genAttrs and use mkOrder (#1718)
Link: https://github.com/nix-community/stylix/pull/1718

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
2025-08-19 22:46:15 +02:00
Skryta Istota
e01d56cf5c
stylix/droid: fix import droid modules (#1823)
Link: https://github.com/nix-community/stylix/pull/1823

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-08-19 13:10:49 -07:00
geodic
05ac1c7074
gdm: apply icon theme (#970)
Link: https://github.com/nix-community/stylix/pull/970

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Tested-by: Daniel Thwaites <danth@danth.me>
2025-08-18 20:02:56 +01:00
Leonard-Orlando Menzel
1b5e1c5642
anki: init (#1801)
Link: https://github.com/nix-community/stylix/pull/1801

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Co-authored-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-08-03 16:34:08 -07:00
NAHO
3b6731f6f0
stylix/testbed/modules/common: globally enable Bash (#1803)
Globally enable Bash to ensure environment variables are set, avoiding
individual testbeds to consider environment variable implementation
details.

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

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-30 10:23:34 -07:00
NAHO
9d539db980
treewide: properly quote stylix.image when used as a shell argument (#1805)
Link: https://github.com/nix-community/stylix/pull/1743
Link: https://github.com/nix-community/stylix/pull/1805

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-30 15:09:48 +02:00
Daniel Thwaites
8017dec82d
stylix/testbed: make path escaping test actually contain a space
Previously the space was sanitized away by `fetchurl` because it was
part of the derivation name. Also, the path with a space was not used
in the `schemeless` theme, which is where the bug happened.
2025-07-30 15:08:03 +02:00
Daniel Thwaites
3499e3ec70
treewide: properly quote stylix.image when used as a shell argument
Closes: https://github.com/nix-community/stylix/issues/1720
Fixes: 218d4424b0 ("treewide: remove redundant stylix.image Nix store copies (#1659)")
2025-07-30 15:02:19 +02:00
Shahar "Dawn" Or
7abe83d1ed fontconfig: set defaultFonts with mkOrder 600
Just for reference:

```nix
mkBefore = mkOrder 500;
defaultOrderPriority = 1000;
mkAfter = mkOrder 1500;
```
2025-07-28 18:08:07 +07:00
awwpotato
2f1ae3b872
stylix/testbed: add sendNotifications option (#1770)
Link: https://github.com/nix-community/stylix/pull/1770

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-27 19:05:26 +02:00
NAHO
ceda12a6da
flake: add Flake Parts tree into testbed environment (#1642)
Link: https://github.com/nix-community/stylix/pull/1642

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-24 17:46:46 +02:00
NAHO
1adb93fcbc
flake: add Flake Parts tree into testbed environment
Add the Flake Parts tree into the testbed environment, enabling
realistic testing interactions.

Flake Parts is chosen over Stylix to reduce cache invalidations, and
over other flake inputs as the smallest tree.
2025-07-24 16:58:27 +02:00
NAHO
fbe1dab778
stylix: apply stylix.iconTheme option rename to all sub-options (#1744)
Link: https://github.com/nix-community/stylix/pull/1744

Fixes: 1021b7d732 ("stylix: simplify API by renaming stylix.iconTheme option to stylix.icons")

Reviewed-by: awwpotato <awwpotato@voidq.com>
Tested-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-23 18:48:02 +00:00
NAHO
ea60526c8c
stylix: simplify API by renaming stylix.iconTheme option to stylix.icons (#1732)
Link: https://github.com/nix-community/stylix/pull/1732

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-21 19:07:31 +02:00
Karun Sandhu
c32c82e460
zen-browser: init (#1694)
Link: https://github.com/nix-community/stylix/pull/1694
Closes: https://github.com/nix-community/stylix/issues/1685

Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: awwpotato <awwpotato@voidq.com>
2025-07-20 16:47:35 -07:00
NAHO
1021b7d732
stylix: simplify API by renaming stylix.iconTheme option to stylix.icons 2025-07-20 23:26:58 +02:00
NAHO
699262a0f8
stylix: rename icon.nix to icon-theme.nix
Rename the icon.nix files to icon-theme.nix to better reflect its
declared iconTheme option.

Fixes: f3c2f5a179 ("stylix: set GTK icon theme (#603)")
2025-07-20 23:03:53 +02:00
NAHO
24499b0049
stylix: conditionally load external modules in testbeds (#1698)
Conditionally load external modules in testbeds to preserve testbed
integrity by preventing unrelated code from running and potentially
invalidating its meaning.

Any performance benefit is merely a side effect of this more targeted
module loading.

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

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
2025-07-19 10:55:09 -07: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
awwpotato
03699ed214
stylix/testbed: respect xserver rename for gnome (#1714)
Fixes: 8c854fe383 ("stylix: allow choosing testbed desktop (#1222)")
Link: https://github.com/nix-community/stylix/pull/1714

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-17 13:01:22 +02: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