Commit graph

43 commits

Author SHA1 Message Date
Daniel Thwaites
d14076e46f
Update flake inputs ⬆️ 2023-07-14 12:50:08 +01:00
Dustin Frisch
7bcf3ce6c9
Fix palette generation when system does not use stylix (#106) 2023-06-06 09:41:31 +00:00
Arseniy Chekanov
cd9e19daa1
Add options availability checks (#100)
This allows using master on 22.11 and on NixOS without the HM module.
See #89 for design rationale.
2023-05-20 11:42:03 +01:00
Mason Dear
1c953ad0dc
Opacity support (#77) 2023-05-18 20:00:50 +01:00
pancho horrillo
906574cb37
Fix markup on truth value (#94)
<literal> elements get rendered, well, literally on the static site.
Changed to native markdown style for proper rendering.
2023-04-27 12:54:48 +01:00
Luc Chabassier
4205a141bf
Fix usage of hm module when system config does not use stylix (#79) 2023-04-02 11:49:39 +01:00
Daniel Thwaites
a3f9fa981b
Convert documentation to mdBook 📝 🔨 2023-03-29 00:54:14 +01:00
Bernardo Meurer
dd33836655
Add darwinModules (#71) 2023-03-28 15:03:06 +00:00
Luc Chabassier
50dcc46fe6
Add options to set font sizes (#60)
Fixes #35 and #59

Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
2023-03-19 18:39:32 +00:00
Luc Chabassier
efb734ff43
Prevent scheme generation from running when result is not used (#56) 2023-03-10 14:21:16 +00:00
Luc Chabassier
75ae5f52e2
Enable overriding part of theme (#41) 2023-02-25 15:22:00 +00:00
Daniel Thwaites
0f32bd147a
Document and improve homeManagerIntegration 📝 🚸
Removed the interaction between the options, so that each option has one
specific purpose. This makes it easier to explain what they do.
2023-02-04 20:27:09 +00:00
DwarfMaster
3567250ba0 Properly warn users that stylix.palette.* has been removed 2023-02-02 00:44:48 +01:00
DwarfMaster
610632be8e Improved default of options when used from home-manager 2023-02-02 00:22:47 +01:00
DwarfMaster
83456eceb6 Auto-enable home-manager integration when hm is available 2023-02-01 21:38:01 +01:00
Daniel Thwaites
02f0297038
Import Home Manager modules when enabled at system level 🚸
`stylix.home-manager.enable = true` causes an error unless the Home
Manager modules are imported. It makes sense to add them automatically.
2023-01-31 18:00:03 +00:00
DwarfMaster
fbad7b1b0c Refactor modules to separate nixos from hm code 2023-01-30 22:56:57 +01:00
DwarfMaster
76a254f9fe Separate stylix into a nixos module and a home-manager module 2023-01-30 19:25:27 +01:00
Daniel Thwaites
1741e9c710
Fix evaluation error when manual scheme is used 🚑 2022-10-30 14:20:55 +00:00
Daniel Thwaites
655fda7894
Don't build a palette which isn't used
If a scheme is specified manually then this avoids generating the
automatic scheme. See #13
2022-10-30 14:17:28 +00:00
Daniel Thwaites
5b45ba84b6
Provide a way to view generated palette 🧑‍💻
Fixes #14
2022-10-30 13:34:30 +00:00
Daniel Thwaites
98114ad3ed
Update other options to suit recent Plymouth changes 📝
This is mainly documentation changes.

Also changed the default of `targets.grub.useImage` to a hard false,
as Plymouth doesn't use the wallpaper image any more.
2022-10-06 15:04:24 +01:00
Daniel Thwaites
cd9788bba6
Protect palette.json from garbage collection
Making palette.json part of the system closure will protect it from
garbage collection, so future configurations can be evaluated without
having to generate the palette again. The generator is not kept, only the
palette which came from it, so this uses very little disk space.

As evaluations will no longer need the palette generator unless the
wallpaper was changed, I've removed the recommendation to add a binary
cache - the overhead of querying the cache for unrelated builds
outweighs the remaining benefits of it.
2022-09-24 20:34:17 +01:00
Daniel Thwaites
3339cc7991
Simplify documentation of the default value for enable options 📝 2022-08-12 19:14:31 +01:00
Daniel Thwaites
0ea346a423
Publish list of NixOS options on GitHub Pages 📝 2022-07-30 15:31:58 +01:00
Daniel Thwaites
a1c4e8179b
Create an enable option for each module
Fixes #7
2022-07-25 20:38:43 +01:00
Daniel Thwaites
324b951687
Improve option description for stylix.palette 💡 2022-07-22 23:08:50 +01:00
Daniel Thwaites
2c8ac84830
Clean up implementation of palette options ♻️
The automatically chosen color is now the default value under `stylix.palette`,
rather than `null`.

The colors from `stylix.palette` are collected to make the default value
of `stylix.base16Scheme`.

If `stylix.base16Scheme` is overridden to an external file, the colors
from that file will NOT be written back to `stylix.palette`. For that
reason, you must still only refer to `lib.stylix.colors` within modules.
2022-07-22 22:46:00 +01:00
Daniel Thwaites
8174101c22
Implement manual palettes
Fixes #1
2022-07-22 17:42:34 +01:00
Daniel Thwaites
6a706cba69 Add polarity option 2022-06-30 18:17:44 +01:00
Daniel Thwaites
e02c8c77a4
Apply home-manager settings to all users automatically 🚸 2022-04-24 11:38:24 +01:00
Daniel Thwaites
c2358177dc
Use an external library for base16 ♻️
https://github.com/SenchoPens/base16.nix
2022-04-23 10:36:20 +01:00
github-actions
f0323ee468 Beautify 7b34be82ff 🎨 2021-10-17 14:05:15 +00:00
Daniel Thwaites
7b34be82ff
Rewrite palette generation in Haskell
This does not rely on an external library for colour selection,
therefore it can be fine-tuned to create a better theme.

Closes #2 because Colorgram is no longer used.
2021-10-17 15:04:19 +01:00
github-actions
af17cad8d9 Beautify de589f60cd 2021-07-28 14:10:54 +00:00
Daniel Thwaites
5f953fa783
Reduce brightness of light scheme 2021-07-06 18:57:57 +01:00
Daniel Thwaites
dccee9b6fd
Add stylix.colors option
Closes #1
2021-03-28 17:56:24 +01:00
Daniel Thwaites
67e4bcebb3
Change type of stylix.image to types.path
A derivation will be converted to a path using builtins.toString,
assuming the image is its only output.
2021-01-08 16:09:07 +00:00
Daniel Thwaites
9666babb92
Add GRUB module 2021-01-04 15:46:04 +00:00
Daniel Thwaites
60f37c639c
Create baseXX-hash attribute 2020-12-21 14:48:23 +00:00
Daniel Thwaites
5f94f7c251
Set type of stylix.homeModule 2020-12-21 14:42:24 +00:00
Daniel Thwaites
536e20fdce
Add Vim module 2020-12-20 19:36:37 +00:00
Daniel Thwaites
f9daee029e
Inital commit 2020-12-20 19:10:14 +00:00