Skip to content

Conversation

@arunoruto
Copy link
Contributor

@arunoruto arunoruto commented Oct 12, 2025

Initilize the vivid module with stylix.
With the PR nix-community/home-manager#7979 merged, it is possible to configure the module using base16 theming.

It is mainly inspired by using catppuccin themes and porting the adequate colors over from tinted theming.

Closes #560

I am not sure if the testbed is enough. Some feedback would be welcome!

Example image of the colors on my system:
image


@stylix-automation stylix-automation bot added topic: home-manager Home Manager target topic: testbed Testbed changes topic: modules /modules/ subsystem labels Oct 12, 2025
Copy link
Member

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this and the detailed description :)

@stylix-automation stylix-automation bot added the topic: flake /flake.nix, /flake.lock, and /flake/ subsystems label Oct 13, 2025
Copy link
Member

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The testbed is failing:

$ nix run .#testbed:vivid:dark
error:
       [...]
       error: A definition for option `virtualisation.vmVariant.home-manager.users.guest.xdg.configFile."vivid/themes/stylix.yml".source' is not of type `absolute path'. Definition values:
       - In `/nix/store/4c04v6w92rikfc3dmljdyp0jhgrhfg0s-source/modules/programs/vivid.nix':
           [
             {
               archives = {
                 font-style = "bold";
                 foreground = "base05";
           ...

@arunoruto arunoruto force-pushed the vivid branch 2 times, most recently from fe0d43f to 4ddc368 Compare October 13, 2025 15:26
Copy link
Member

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we resolve #1938 (comment) before merging this PR, or should we defer this to an upstream PR?

@arunoruto
Copy link
Contributor Author

arunoruto commented Oct 14, 2025

Should we resolve #1938 (comment) before merging this PR, or should we defer this to an upstream PR?

I made an issue referencing it. The module maintainer is quite active, so we should get a response pretty fast.

I also pushed a new change addressing the problem with the theme. I forced a JSON structure in the file for now, bypassing the number problem. If the response to the issue is positive regarding the 2nd point (either introducing an option or always use JSON), we can remove the "hack":

xdg.configFile."vivid/themes/${theme}.yml".source = lib.mkForce (
  pkgs.writeText "${theme}.json" (
    builtins.toJSON config.programs.vivid.themes.${theme}
  )
);

@arunoruto
Copy link
Contributor Author

Since nix-community/home-manager#7996 got merged, I guess we can now thinker with adding the module finally to stylix.
If the way vivid is executed changes down the road in home-manager, it shouldn't influence how stylix configures it.

@arunoruto arunoruto force-pushed the vivid branch 2 times, most recently from 7308362 to c9c6e49 Compare November 28, 2025 12:43
@arunoruto
Copy link
Contributor Author

The tests are passing on my machine now, I guess the CI just didn't have resources now to perform it too.

Copy link
Member

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after resolving #1938 (comment) by merging #2035 first.

@arunoruto
Copy link
Contributor Author

LGTM after resolving #1938 (comment) by merging #2035 first.

Thanks for your help!

Initilize the vivid module with stylix.
With the PR nix-community home-manager 7979 merged,
it is possible to configure the module using base16 theming.
Closes 560
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: merge conflict Merge conflict topic: flake /flake.nix, /flake.lock, and /flake/ subsystems topic: home-manager Home Manager target topic: modules /modules/ subsystem topic: testbed Testbed changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LS_COLORS: add target

2 participants