Open psynyde opened 2 months ago
I assume the main issue is nixpkgs-unstable introduced more customization to regreet which isn't available on stable.
Do you mean by "stable", the nixos-*.*
(like nixos-24.05
) Nixpkgs branches? IIRC, regular feature additions are not backported from nixos-unstable
to these branches. In other words, this option is intentionally lacking.
I'm creating this issue who are facing this error below or something similar even though their system doesn't use regreet at at.
Either way, thanks for posting this for reference.
In the future, https://github.com/danth/stylix/issues/543 would partially resolve similar issues.
I will close this issue, as I don't think there is much Stylix can do about this at this point. Feel free to re-open, if I am wrong on this.
Setting stylix.targets.regreet.enable
to false
doesn't help on NixOS 24.05. Does this mean there's no way to update Stylix past cf8b6e2d4e8aca8ef14b839a906ab5eb98b08561 until switching to 24.11 or unstable?
Setting
stylix.targets.regreet.enable
tofalse
doesn't help on NixOS 24.05. Does this mean there's no way to update Stylix past cf8b6e2 until switching to 24.11 or unstable?
I see your use case. Maybe we could backport to release-24.5
a check whether the regreet
package exists. @danth, what do you think?
Basically, can't update stylix, past the update that added regreet, because stylix is set to expect regreet to have options that are only available in nixpkg-unstable.
So the options don't exist so stylix fails the build.
It's not relevant if you have regreet enabled or not, and it's not relevant if you have regreet installed or not.
Right now stylix 24.05 doesn't work.
If you check programs.regreet in search.nixos.org/options and compare what options are available in 24.05 and unstable, there are more options in unstable. Hopefully these options can be removed from stylix 24.05.
Thank you!
Basically, can't update stylix, past the update that added regreet, because stylix is set to expect regreet to have options that are only available in nixpkg-unstable.
So the options don't exist so stylix fails the build.
It's not relevant if you have regreet enabled or not, and it's not relevant if you have regreet installed or not.
I already mentioned this:
In the future, https://github.com/danth/stylix/issues/543 would partially resolve similar issues.
Right now stylix 24.05 doesn't work.
If you check programs.regreet in search.nixos.org/options and compare what options are available in 24.05 and unstable, there are more options in unstable. Hopefully these options can be removed from stylix 24.05.
What do you mean by "stylix 24.05"?
If you mean the release-24.05 Stylix branch, then this should not be an issue because it does not have a regreet module. If you mean that you are explicitly overriding Stylix's github:NixOS/nixpkgs/nixpkgs-unstable
input with github:NixOS/nixpkgs/nixos-24.05
(which is clearly behind the Nixpkgs version Stylix master supports), then there is obviously a version mismatch possibility beyond Stylix's control. Note that Stylix deliberately updates (unless we forget to do so) its flake.lock
versions when using features that are not already available in the current flake.lock
versions.
Similar to Nixpkgs and Home Manager, Stylix supports only the latest versions from flake.lock
, unless logically necessary. For example, Nixpkgs provides simultaneously several nodejs
versions.
@trueNAHO Thanks for answering. with
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Which I assume means I get stylix/release-24.05? (please advice)
But when I do a nix flake update
I get this issue, where stylix expects regreet options from nixos-unstable
nixpkgs 24.05:
programs.regreet.settings
programs.regreet.package
programs.regreet.enable
programs.regreet.extraCss
programs.regreet.cageArgs
nixpkgs unstable:
programs.regreet.settings
programs.regreet.package
programs.regreet.enable
programs.regreet.theme.name
programs.regreet.font.size
programs.regreet.font.name
programs.regreet.iconTheme.name
programs.regreet.cursorTheme.name
programs.regreet.theme.package
programs.regreet.iconTheme.package
programs.regreet.font.package
programs.regreet.extraCss
programs.regreet.cursorTheme.package
programs.regreet.cageArgs
@sigboe unsure if you are having this problem, but no you are pulling the master branch for Stylix. You would need to adjust stylix.url
to be github:danth/stylix/release-24.05
I encountered this issue today after updating my flake.lock
file. I have the following inputs:
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
I use nixpkgs
for most of my configuration, but sometimes I rely on nixpkgs-unstable
for a specific software/app. This should work, right?
That will only make the flake use packages from unstable but not the nixosModules. You would need to define your system with unstable instead of stable or as previously stated use the stable branch of stylix that matches your nixpkgs.
I'm running into this now and I'm a little unclear about what I should expect from the main
branch. I totally understand having the release-24.05
branch (and its inputs) be set to specific revisions, and I totally understand that things will break if a user overrides the nixpkgs
input with a follows
.
Should I expect main
to work though? I'm hitting this error on main
without overriding the nixpkgs
input.
I'm running into this now and I'm a little unclear about what I should expect from the
main
branch. I totally understand having therelease-24.05
branch (and its inputs) be set to specific revisions, and I totally understand that things will break if a user overrides thenixpkgs
input with afollows
.Should I expect
main
to work though?
Ideally, yes.
I'm hitting this error on
main
without overriding thenixpkgs
input.
Does commit 7689e621f87bce7b6ab1925dfd70ad1f4c80f334 resolve the issue?
I'm creating this issue for who are facing this error below or something similar even though their system doesn't use regreet at.
changing stylix input to
github:danth/stylix/cf8b6e2d4e8aca8ef14b839a906ab5eb98b08561
. should fix the issue.I assume the main issue is nixpkgs-unstable introduced more customization to regreet which isn't available on stable (ie. 24.05) The input above points to the commit before regreet was introduced in styix.