Commit graph

18 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
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
Flameopathic
d9df91c556
vscode: theme default profile by default (#1015) 2025-03-23 18:12:42 +00:00
awwpotato
ff9ae322bc
treewide: clean up with and stuff (#975)
Fixes #973
2025-03-18 12:10:02 +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
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
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
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
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
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
Renamed from modules/vscode/default.nix (Browse further)