-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firefox: add gnome-theme testbed #879
base: master
Are you sure you want to change the base?
Conversation
I just tested it and it works, but it has some weird artifacts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering hyphens are not allowed in testbed names, should we rename the testbed to gnome_theme
? This naming convention scales better, if we add longer testbed names in the future. @danth, what do you think?
We should find a better solution for naming testbeds so that hyphens are allowed, as hyphens are pretty standard for this sort of thing in other Nix projects. Potentially we could move to a nested structure, although that may be incompatible with certain For the purposes of this PR I would just leave it as |
Some module names also include hyphens, so I'd consider a different separator like |
I don't really get why this testbed is failing, because it's pretty much identical to the other firefox testbed. |
The nested structure I mentioned would work with |
This will be due to the use of |
Yea, that should work. Thanks for pointing it out! So I assume that |
Ok, it seems like |
According to https://nix.dev/manual/nix/2.25/language/import-from-derivation, this happens when a derivation depends on another derivation in any way. It's actually just a performance measure, so I wonder if we can somehow turn it off. The |
True.
The
In that case, derivation names need to be quoted: nix run '.#"testbed.module-name.dark"' Since this is fairly annoying to type, we could chose another separator, like nix run .#testbed:module-name:dark
IFD is disabled inside the CI since commit d8289c3 ("ci: disable IFD (#855)"). |
What about this? userChrome =
let template = config.lib.stylix.colors {
template = ./userChrome.mustache;
extension = "css";
};
in ''
@import "${template}";
''; IFD is intentionally disabled in the CI as some systems, such as Hydra, don't allow it by default, so we try to avoid IFD wherever possible so that user's configurations are compatible with that (and also the performance improvements as you mentioned). |
I implemented this in #887. |
I meant that we use attribute sets inside attribute sets, like {
gnome = {
default = {
light = «derivation»;
dark = «derivation»;
};
};
} This would not require quoting. However I can confirm this is not supported by |
In my opinion |
Can |
Adds a separate testbed for Firefox with `firefoxGnomeTheme.enable = true` as per danth#702 (comment).
d1a382a
to
da580fd
Compare
Adds a separate testbed for Firefox with
firefoxGnomeTheme.enable = true
as per#702 (comment).