No description
Find a file
Alexey Lebedeff 9b61cc39b2
stylix: don't split autoloaded modules into a separate derivation (#631)
Apparently `../modules` is creating a separate derivation that contains
only that folder, so it's now separate from the flake source. But this
transient derivation isn't mentioned explicitly anywhere in the flake
outputs. It makes it impossible to target those modules in
`disabledModules` directive.

For example, after this change is applied, users can solve issues like
https://github.com/danth/stylix/issues/577 locally, by just adding the
following snippet to their configuration:

    disabledModules = [ "${inputs.stylix}/modules/regreet/nixos.nix" ];

Reviewed-by: Daniel Thwaites <danthwaites30@btinternet.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-11-17 17:40:52 +01:00
.github ci: update Actions related to GitHub Pages (#524) 2024-08-23 21:00:58 +01:00
docs stylix: don't split autoloaded modules into a separate derivation (#631) 2024-11-17 17:40:52 +01:00
modules hyprland: add testbed (#611) 2024-11-17 14:10:42 +01:00
palette-generator Refactor palette generator ♻️ 2023-07-08 14:28:15 +01:00
stylix stylix: don't split autoloaded modules into a separate derivation (#631) 2024-11-17 17:40:52 +01:00
.gitignore stylix: add gitignore file (#291) 2024-03-18 10:50:32 +00:00
default.nix Add default.nix 2023-02-24 07:03:28 +01:00
flake.lock hyprland: add testbed (#611) 2024-11-17 14:10:42 +01:00
flake.nix foot: disable faulty check (#576) 2024-11-08 19:26:05 +01:00
gnome.png doc: refresh screenshots (#382) 2024-05-22 16:54:19 +01:00
kde.png doc: refresh screenshots (#382) 2024-05-22 16:54:19 +01:00
LICENSE Add MIT license 2020-12-21 13:58:20 +00:00
README.md stylix: add 'stylix.enable' option (#244) 2024-06-10 11:52:47 +02:00

Stylix

Stylix is a NixOS module which applies the same colour scheme, font and wallpaper to a range of applications and desktop environments.

What's this?

base16.nix allows you to import colours from base16 into Nix code. Stylix takes this a step further:

  • Automatically colours and changes the font of apps
  • Sets your wallpaper
  • Exports the colour scheme to be used manually for anything we missed
  • Can also generate themes based on an image

For those not familiar with NixOS and Home Manager:

  • NixOS is a Linux distribution
  • Home Manager is a program which runs anywhere
  • Both use the Nix language and package manager
  • Both let you install programs and change settings via code

Stylix supports either NixOS + Home Manager, or Home Manager on its own. Certain features are only available with NixOS.

Resources

Please refer to the Stylix book for instructions and a list of supported apps.

For a visual guide, watch the Ricing Linux Has Never Been Easier | NixOS + Stylix YouTube video by Vimjoyer.

Note

It's now necessary to include stylix.enable = true in your configuration for any other settings to take effect. This is not mentioned in the video linked above.

If you have any questions, you are welcome to join our Matrix room, or ask on GitHub Discussions.

Example configurations

GNOME 46

GNOME 46

Photos by Clay Banks and Derrick Cooper.

Try a live demo of this theme by running nix run github:danth/stylix#testbed-gnome-light or nix run github:danth/stylix#testbed-gnome-dark.

KDE Plasma 5

KDE Plasma 5

Photos by Aniket Deole and Tom Gainor.

KDE theming is still a work in progress - so some manual steps may be needed to apply the settings completely.