Add EditorConfig complementary to the existing formatter checks:
> EditorConfig helps maintain consistent coding styles for multiple
> developers working on the same project across various editors and
> IDEs.
>
> -- EditorConfig, https://editorconfig.org
Link: https://github.com/danth/stylix/pull/945
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
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>
This commit allows CI jobs to degrade gracefully if Cachix has issues,
by skipping uploads and/or building packages from scratch rather than
failing the job.
This is in response to the recent failures on `master`, which appear to
be caused by a 502 (Bad Gateway) response while uploading some of the
build results.
Add a gnome-theme testbed and extract the profile name in the default
testbed.
Link: https://github.com/danth/stylix/pull/879
Co-authored-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This will improve CI performance, and may also be used locally,
although this is not officially documented at this time.
I tested the required amount of space by building a `pkgs.linkFarm`
containing all testbeds, then manually pushing this to an empty Cachix
cache.
The total space used was 274 MiB of the 5 GiB free allowance, so
Cachix is good enough to cache at least 20 commits of history,
assuming the worst case scenario of every commit changing
every derivation we build.
Fixes#880
Allow standalone nixvim users to take advantage of stylix by exposing
the generated config as `config.lib.stylix.nixvim.config`.
This can be passed to the nixvim derivation's `extend` function or used
directly in a nixvim configuration.
Following commit c8e4a0d218 ("treewide: optionalize stylix.image option
(#717)"), listing all testbed combinations is unnecessary. Consequently, only
one testbed is mentioned.
Link: https://github.com/danth/stylix/pull/909
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
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>
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>
Parametrize and change the testbed field separator to the colon (':')
character to avoid ambiguity with module names containing hyphens ('-'),
and allow testbed names to contain hyphens.
Fixes: 211a8440e7 ("stylix: support multiple testbeds per module (#858)")
Make the get-derivations job fail when the command writing to the
$GITHUB_OUTPUT file fails.
Previously, the $GITHUB_OUTPUT file was successfully created when the
input command failed, resulting in an empty $GITHUB_OUTPUT file. [1]
[1]: https://stackoverflow.com/questions/59287865
Collapsing is only possible for pages, not headings, so I had to
combine platforms and modules into a single section and nest them
under draft pages.
Later, we could migrate some content from the configuration page to
these draft pages to make the flow of the book more natural.
Add the colorTheme.enable option to the Firefox derivatives by
installing the the Firefox Color extension.
This is not enabled by default because writing extension settings
requires manually setting 'extensions.force = true'. [1]
[1]: https://github.com/nix-community/home-manager/pull/6490
Link: https://github.com/danth/stylix/pull/881
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This has two benefits:
1. It will be displayed when browsing the module source code on
GitHub.
2. It prevents the documentation inadvertently disappearing if the
module directory is renamed.
Added support for `plymouth ask-question` and `plymouth display-message`
in the Plymouth theme. These can by pretty useful for more sophisticated
setups that require more than "please enter a password".
Ensure the palette generator is properly cached by fixing the bug
introduced in commit efb734ff43 ("Prevent scheme generation from
running when result is not used (#56)"), where the added indirection
prevents the output of the palette generator becoming part of the final
system.
Using highestPrio as a condition should prevent the palette generator
being forced to run when the output is not used, which is the issue that
the indirection was meant to solve.
Link: https://github.com/danth/stylix/pull/867
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This adds temporary warnings when plasma6 is enabled and will be
replaced with actual handling of plasma6 when styling solutions are
added upstream.
Currently, this requires a manual work around that is only reasonable on
home-manager and not on NixOS. Users will be deferred to find
workarounds in the issue when they encounter this warning.
Relates to #835
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>