Skip to content

Conversation

@khas-amir
Copy link
Contributor

@khas-amir khas-amir commented Oct 4, 2025

#1924


@stylix-automation stylix-automation bot added topic: home-manager Home Manager target topic: modules /modules/ subsystem labels Oct 4, 2025
@khas-amir khas-amir marked this pull request as draft October 5, 2025 17:09
@khas-amir khas-amir marked this pull request as ready for review October 8, 2025 17:45
@khas-amir khas-amir requested a review from trueNAHO October 8, 2025 17:46
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.

Would be great to have a testbed for this.

(
{ colors }:
let
colorTheme = {
Copy link
Member

Choose a reason for hiding this comment

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

Why are the dark and light themes so different?

in
{
home.file.".config/DankMaterialShell/stylix-colors.json".text =
builtins.toJSON colorTheme;
Copy link
Member

Choose a reason for hiding this comment

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

Might be better to inline this single-use variable.

name = "dankMaterialShell";
homepage = "https://github.com/AvengeMedia/DankMaterialShell";
maintainers = [ lib.maintainers.khas-amir ];
description = ''In the settings, click Theme & Colors, then Custom, and select the path to the Stylix-generated color scheme ` ~/.config/DankMaterialShell/stylix-colors.json`'';
Copy link
Member

@trueNAHO trueNAHO Oct 8, 2025

Choose a reason for hiding this comment

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

This should be properly wrapped:

Suggested change
description = ''In the settings, click Theme & Colors, then Custom, and select the path to the Stylix-generated color scheme ` ~/.config/DankMaterialShell/stylix-colors.json`'';
description = ''
In the settings, click Theme & Colors, then Custom, and select the path to
the Stylix-generated color scheme
`~/.config/DankMaterialShell/stylix-colors.json`.
'';

name = "dankMaterialShell";
homepage = "https://github.com/AvengeMedia/DankMaterialShell";
maintainers = [ lib.maintainers.khas-amir ];
description = ''In the settings, click Theme & Colors, then Custom, and select the path to the Stylix-generated color scheme ` ~/.config/DankMaterialShell/stylix-colors.json`'';
Copy link
Member

Choose a reason for hiding this comment

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

What about automatically applying this? If this actually requires imperatively overriding configuration files, then we can use a similar approach to #951 (comment).

Copy link

Choose a reason for hiding this comment

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

there is a settings file that stylix could modify, but it's only read on the shell starting up. maybe it could kill and restart the shell when it applies the theme?

Copy link
Member

Choose a reason for hiding this comment

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

Since restarting applications is an implicitly expected requirement, we can remove the following description:

description = "Restart the panel to apply the theme";

@@ -0,0 +1,7 @@
{ lib, ... }:
{
name = "dankMaterialShell";
Copy link
Member

Choose a reason for hiding this comment

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

Should it not be:

Suggested change
name = "dankMaterialShell";
name = "DankMaterialShell";

@khas-amir khas-amir marked this pull request as draft October 20, 2025 21:37
@stylix-automation stylix-automation bot added topic: testbed Testbed changes topic: flake /flake.nix, /flake.lock, and /flake/ subsystems topic: stylix /stylix/ subsystem labels Oct 27, 2025
@khas-amir khas-amir marked this pull request as ready for review October 28, 2025 10:05
@khas-amir
Copy link
Contributor Author

I don't understand why the checks are failing.

@stylix-automation stylix-automation bot added the status: merge conflict Merge conflict label Oct 28, 2025
@stylix-automation stylix-automation bot removed the status: merge conflict Merge conflict label Oct 30, 2025
@khas-amir khas-amir requested a review from trueNAHO October 31, 2025 22:25
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.

I don't understand why the checks are failing.

The locally working evaluations are failing in CI for some reason:

2025-11-04T14:39:20.6152550Z building '/nix/store/r3va1pk1gc1wnmn4ajr8f3vbqicxyx8r-dgop-0.1.7.drv'...
2025-11-04T14:39:20.8373284Z error: Nix daemon disconnected unexpectedly (maybe it crashed?)
2025-11-04T14:39:20.8490390Z WARNING:nix_fast_build:build testbed:dankMaterialShell:light exited with 1
[...]
2025-11-04T14:39:46.9992225Z error: Nix daemon disconnected unexpectedly (maybe it crashed?)
2025-11-04T14:39:47.0068660Z WARNING:nix_fast_build:build testbed:dankMaterialShell:dark exited with 1

-- https://github.com/nix-community/stylix/actions/runs/18920823815/job/54477479189?pr=1932

CI is using Nix 2.32.1 and does not seem to run out of space:

2025-11-04T15:01:53.3287684Z Filesystem      Size  Used Avail Use% Mounted on
2025-11-04T15:01:53.3288211Z /dev/root        72G   51G   22G  71% /

-- https://github.com/nix-community/stylix/actions/runs/18920823815/job/54477479189?pr=1932

Let's hope rerunning CI several times magically fixes the problem.

CC: @0xda157, @danth


@khas-amir, please address and potentially resolve previous change requests.

name = "DankMaterialShell";
homepage = "https://github.com/AvengeMedia/DankMaterialShell";
maintainers = [ lib.maintainers.khas-amir ];
description = "Restart the panel to apply the theme";
Copy link
Member

Choose a reason for hiding this comment

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

Could you rephrase the description with the IMPORTANT admonition to match the current style:

$ rg --files-with-matches '> \[!IMPORTANT\]'
doc/src/modules.md
modules/blender/meta.nix
modules/discord/meta.nix
modules/firefox/meta.nix
modules/i3/meta.nix
modules/neovim/meta.nix
modules/spicetify/meta.nix
modules/sway/meta.nix
modules/zen-browser/meta.nix

name = "dankMaterialShell";
homepage = "https://github.com/AvengeMedia/DankMaterialShell";
maintainers = [ lib.maintainers.khas-amir ];
description = ''In the settings, click Theme & Colors, then Custom, and select the path to the Stylix-generated color scheme ` ~/.config/DankMaterialShell/stylix-colors.json`'';
Copy link
Member

Choose a reason for hiding this comment

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

Since restarting applications is an implicitly expected requirement, we can remove the following description:

description = "Restart the panel to apply the theme";

in
{
home.file.${stylixThemePath}.text = builtins.toJSON colorTheme;
programs.dankMaterialShell.default.settings = {
Copy link
Member

@trueNAHO trueNAHO Nov 4, 2025

Choose a reason for hiding this comment

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

Subjective nitpick:

Suggested change
programs.dankMaterialShell.default.settings = {
programs.dankMaterialShell.default.settings = {

@trueNAHO
Copy link
Member

trueNAHO commented Nov 8, 2025

I don't understand why the checks are failing.

The locally working evaluations are failing in CI for some reason:

2025-11-04T14:39:20.6152550Z building '/nix/store/r3va1pk1gc1wnmn4ajr8f3vbqicxyx8r-dgop-0.1.7.drv'...
2025-11-04T14:39:20.8373284Z error: Nix daemon disconnected unexpectedly (maybe it crashed?)
2025-11-04T14:39:20.8490390Z WARNING:nix_fast_build:build testbed:dankMaterialShell:light exited with 1
[...]
2025-11-04T14:39:46.9992225Z error: Nix daemon disconnected unexpectedly (maybe it crashed?)
2025-11-04T14:39:47.0068660Z WARNING:nix_fast_build:build testbed:dankMaterialShell:dark exited with 1

-- https://github.com/nix-community/stylix/actions/runs/18920823815/job/54477479189?pr=1932

Maybe rebasing this PR on top of #1961 once its CI passes, also resolves this CI failure.

@0xda157
Copy link
Contributor

0xda157 commented Nov 18, 2025

pulling from master again should fix the ci

inputs.zen-browser.homeModules.default
];

dankMaterialShell.home-manager.sharedModules = [
Copy link
Contributor

Choose a reason for hiding this comment

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

consider sorting this attrset, so darkMaterialShell would be first (note we can't use keep-sorted here due to it not working properly with inherit)

@khas-amir khas-amir requested a review from 0xda157 November 22, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants