-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
treewide: make stylix.image
optional
#717
base: master
Are you sure you want to change the base?
Conversation
63b1088
to
0245402
Compare
This PR could be mostly generated with: fd -e nix -X sed -i 's/config\.stylix\.image/lib.mkIf (\0 != null) \0'
I suggest adding an
Consistently wrapping with For reference, #442 might contain more practical information. |
i'll test it out doing just that, though it seems more complicated than the rest
good idea, done
sounds good and makes sense; why do anything more complicated
ah, hadn't noticed it. are you interested in me adding the proposed wallpaper option for every module that uses |
aa17ed3
to
f7e7cbc
Compare
Yes. |
6693243
to
2b2b059
Compare
can't seem to get KDE themed, even with an image using the official release of stylix. is it known to be broken? either way it may be best to, for the moment, disable KDE theming when there is no image, as #708 looks like it's about to change the module entirely |
50cce00
to
ce128e9
Compare
ce128e9
to
64a5bb9
Compare
set up individual toggles. failing to set i still need help with KDE for reasons explained previously testing of all other modules in progress |
Yeah, KDE theme activation is currently broken for any setup where the activation isn't run inside a Plasma session. I think it'll be sufficient to just guard the if-block in the activator script and the magick-related commands in the |
got it, thanks
awesome, double thanks |
Can you elaborate? I assume the following should be the pattern: {
config,
lib,
...
}: let
target = "<TARGET>";
in {
options.stylix.targets.${target} = {
enable = config.lib.stylix.mkEnableTarget target true;
# TODO: Define config.lib.stylix.mkEnableWallpaper with an appropriate
# description.
wallpaper = config.lib.stylix.mkEnableWallpaper target true;
};
config = let
cfg = config.stylix.targets.${target};
in
lib.mkIf (config.stylix.enable && cfg.enable) {
programs.${target} = {
enable = true;
wallpaper =
lib.mkIf
(cfg.wallpaper && config.stylix.image != null)
config.stylix.image;
};
};
} Extracting the hard-coded I could quickly do this in a separate PR, but getting my PRs merged takes quiet long since danth is rather slow to respond. However, keeping that commit in this PR will be rather annoying, since we need to resolve breaking changes with new modules introduced in master... |
I must have misunderstood what you wanted in #442, i just added an option to every module that uses the wallpaper. |
Your approach looks good. Sorry for the confusion. |
Cross-post:
|
implemented |
Closes: #200
Closes: #442
will make
stylix.image
optional, as long asstylix.base16Scheme
is settasks
config.stylix.image
stylix.image
orstylix.base16Scheme
is seti wonder if, in some places,
pixel.nix
would be useful or better than setting nothing at all, though i'm not sure