Commit graph

53 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
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
Ian Holloway
727785e678
vscode: add chat and notebook markup font family settings (#1972)
Link: https://github.com/nix-community/stylix/pull/1972

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
2025-11-18 15:51:39 +01:00
Vidhan Bhatt
647bb8dd96
vscode: add more themed items (#1957)
Link: https://github.com/nix-community/stylix/pull/1957

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
2025-11-04 14:52:36 +01:00
NAHO
62c9ec3e0e
treewide: expand testbed interactions with Flake Parts tree 2025-07-24 16:58:27 +02: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
stylix-automation[bot]
4cb10b3446
stylix: update all flake inputs (#1563)
Link: https://github.com/nix-community/stylix/pull/1563

Reviewed-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: awwpotato <awwpotato@voidq.com>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-08 21:27:03 +00:00
NAHO
bba3152bd2
treewide: standardize URL format by removing trailing slashes (#1566)
Link: https://github.com/nix-community/stylix/pull/1566

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-07-06 22:18:33 +02:00
LemmusLemmus
751d6c5df0
doc: Add VSCode color customization tip (#1461) 2025-06-14 13:51:08 +01:00
Flameopathic
dcf0f17712
vscode: use mkTarget (#1477)
Link: https://github.com/nix-community/stylix/pull/1477

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-12 20:29:06 +02:00
Matt Sturgeon
ba217a8128
flake: use biome formatter for JSON and CSS (#1394)
Link: https://github.com/nix-community/stylix/pull/1394

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-28 17:55:09 +02:00
NAHO
1fdbf01ebe
stylix: reduce testbed names (#1094)
Link: https://github.com/nix-community/stylix/pull/1094

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-26 18:23:38 +02:00
NAHO
d66135deb3
flake: add ruff formatter (#1389)
Link: https://github.com/nix-community/stylix/pull/1389

Reviewed-by: awwpotato <awwpotato@voidq.com>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-05-26 18:06:05 +02:00
Flameopathic
17398c4fce treewide: name default testbeds 2025-05-24 08:53:58 -04:00
Flameopathic
e2fe2df9b0
doc: restructure module rendering (#1083) 2025-05-18 14:09:50 +01:00
Flameopathic
8a35410a28
treewide: add stylix.testbed.ui.{command,application} options (#1110)
Link: https://github.com/danth/stylix/pull/1110

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-04-29 19:59:16 +02: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
d9df91c556
vscode: theme default profile by default (#1015) 2025-03-23 18:12:42 +00:00
Flameopathic
603fe2dc79
treewide: add Flameopathic as maintainer (#1026) 2025-03-19 22:15:27 +01:00
Daniel Thwaites
1ac1b0d951
treewide: add danth as maintainer (#1011) 2025-03-19 18:54:09 +01:00
awwpotato
ff9ae322bc
treewide: clean up with and stuff (#975)
Fixes #973
2025-03-18 12:10:02 +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
Daniel Thwaites
5053a63c87
vscode: convert template to Nix and refactor module (#990) 2025-03-13 15:46:07 +00:00
Daniel Thwaites
51161f1191
vscode: set profile name in testbed (#980)
Previously, the theme was not enabled in the testbed because there were
no existing profiles.
2025-03-13 15:45:32 +00:00
Daniel Thwaites
1873bc8acd
vscode: apply new update script
Applied the new alphabetical ordering, and set newly added options to
null. I will follow this up later by giving values to those options.
2025-03-12 17:36:22 +00:00
Daniel Thwaites
c5558f7de9
vscode: convert template to Nix and refactor module
Benefits:

- No need to run Mustache, so better performance
- Allows the code to be linted and formatted
- Generated file is minified
- Can use arbitrary variables to name colors and group settings
  (although this is not implemented)

Drawbacks:

- Update script is more complex

I opted to change the sorting to alphabetical order because it's
easier to implement in the update script. The script prints a list
of added and removed options, so ordering to match the upstream
documentation is not necessary.
2025-03-12 17:36:02 +00:00
Daniel Thwaites
599d5a5eca
vscode: use base01 for title bar (#979)
VSCode on Linux now uses a custom title bar by default.

This should be colored in base01 to match our theming of GTK title bars
(although this is not explicitly mentioned in the style guide).

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-11 22:54:27 +01:00
Flameopathic
4853879264
vscode: support arbitrary profiles (#914)
vscode: support arbitrary profiles

The VSCode theme is no longer only applied to any profiles by default.

Closes: https://github.com/danth/stylix/issues/908
Link: https://github.com/danth/stylix/pull/914

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-07 09:18:46 +01:00
Jaanonim
cbe42e21ee
treewide: rename wpaperd and vscode options (#905)
Resolve the following warnings:

    - The option `programs.wpaperd.settings' defined in
      `/nix/store/<HASH>-source/modules/wpaperd/hm.nix' has been renamed
      to `services.wpaperd.settings'.

    - The option `programs.vscode.extensions' defined in
      `/nix/store/<HASH>-source/modules/vscode/hm.nix' has been renamed
      to `programs.vscode.profiles.default.extensions'.

    - The option `programs.vscode.userSettings' defined in
      `/nix/store/<HASH>-source/modules/vscode/hm.nix' has been renamed
      to `programs.vscode.profiles.default.userSettings'.


The VSCode theme is now only applied to the 'default' profile.

Closes: https://github.com/danth/stylix/issues/903
Link: https://github.com/danth/stylix/pull/905

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-24 16:43:41 +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
NAHO
7818098f4d
treewide: remove trailing whitespaces and add trailing newline (#841) 2025-02-08 22:20:10 +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
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
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
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
Flameopathic
23d9debfdc vscode: extensive fonts 2024-12-09 13:04:38 -05:00
Daniel Thwaites
146d92a210
vscode: add testbed 2024-11-08 18:00:55 +00:00
David Schaller
64c5bd0fbe
vscode: fix typo in template.mustache (#434) 2024-06-15 11:01:52 +01:00
David Schaller
73c6955b45
vscode: fixed search match opacity (#427) 2024-06-13 16:32:14 +01: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
David Schaller
8f7abd2252
vscode: improve text contrast for diffs and merges (#358) 2024-05-07 19:59:24 +01:00
Daniel Thwaites
4d29962d98
vscode: various adjustments (#271)
Co-authored-by: David Schaller <dafitt@posteo.in>
2024-03-18 00:38:53 +00:00
Ujp8LfXBJ6wCPR
4ea345211e
Make VSCode settings strings (#218)
Fixes settings being greyed out by code when you view settings.json
2024-01-17 13:11:23 +00:00
Daniel Thwaites
d14076e46f
Update flake inputs ⬆️ 2023-07-14 12:50:08 +01:00
Lyndon Sanche
bd1b970115
vscode: Set editor and terminal font (#93) 2023-04-27 12:57:24 +01:00
Daniel Thwaites
936d97a057
Fix VSCode module 👽 2023-04-19 09:33:49 +01:00
DwarfMaster
fbad7b1b0c Refactor modules to separate nixos from hm code 2023-01-30 22:56:57 +01:00