-
Notifications
You must be signed in to change notification settings - Fork 59
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
fix(nixos): sddm package not being installed #194
Conversation
Never use attrset merge operator with `mk*` attrsets since the right hand attrset overrides the left
It seems that aef5672 tries to install the theme package for all versions, but set the theme only if >= 24.05. However, since the options are only made accessible if >= 24.05, there's no way to enable sddm theming at all on older versions, so I changed the module to not enable |
@@ -13,12 +13,16 @@ let | |||
versionAtLeast | |||
; | |||
cfg = config.services.displayManager.sddm.catppuccin; | |||
enable = cfg.enable && config.services.displayManager.sddm.enable; | |||
enable = | |||
versionAtLeast ctp.getModuleRelease minVersion |
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.
Why is this extra version check needed? You already can't enable cfg
on versions under minVersion
.
Maybe it's better to place the mkVersionedOpts
on options.services.displayManager.sddm.catppuccin
so you get this error
instead of this nothing happening or this error without the extra check
when trying to enable services.displayManager.sddm
with a version under minVersion
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.
I didn't test it, but theoretically, without the version check, enable
depends on config.services.displayManager.sddm.catppuccin
even when it's not defined and not enabled
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.
lgtm. sorry for the wait and thank you!
Never use attrset merge operator with
mk*
attrsets since the right hand attrset overrides the leftFixes #192