Skip to content
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

The option `hardware.graphics' does not exist #226

Open
Thatoo opened this issue Jul 18, 2024 · 11 comments
Open

The option `hardware.graphics' does not exist #226

Thatoo opened this issue Jul 18, 2024 · 11 comments

Comments

@Thatoo
Copy link

Thatoo commented Jul 18, 2024

Everything was working till last week-end I guess.
Today, i did

sudo nix flake update
sudo nixos-rebuild switch --show-trace --flake

and it failed with

error:
       … while calling the 'seq' builtin

         at /nix/store/sj9yrq21wbbfr5715hys3laa2qd6x471-source/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       … while calling the 'throw' builtin

         at /nix/store/sj9yrq21wbbfr5715hys3laa2qd6x471-source/lib/modules.nix:298:18:

          297|                     ''
          298|             else throw baseMsg
             |                  ^
          299|         else null;

       error: The option `hardware.graphics' does not exist. Definition values:
       - In `/nix/store/sv3hw54ha6n92nrh5f8ki3vb602q52w8-source/nixos/cosmic-greeter/module.nix':
           {
             _type = "if";
             condition = false;
             content = {
               enable = true;
           ...

Any idea what it could be?

@lilyinstarlight
Copy link
Owner

lilyinstarlight commented Jul 18, 2024

Yes, due to upstream requiring a newer rustc than nixpkgs intends to backport to stable, 24.05 support has been dropped here. You'll need nixos-unstable going foward

@Thatoo
Copy link
Author

Thatoo commented Jul 18, 2024

Something like

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
    nixpkgs_unstable.url = "github:NixOS/nixpkgs/nixos-unstable";

isn't possible?

@lilyinstarlight
Copy link
Owner

Something like

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
    nixpkgs_unstable.url = "github:NixOS/nixpkgs/nixos-unstable";

isn't possible?

I mean if you use nixpkgs_unstable.lib.nixosSystem then that could work I guess. The important bit is that your system is built against nixos-unstable rather than whatever your flake inputs ultimately have

@Thatoo
Copy link
Author

Thatoo commented Jul 18, 2024

Thank you even though that's sad. I wish Gnome specialisation and software packages could be stable and only cosmic sepcialisation could be unstable...

@lilyinstarlight
Copy link
Owner

Yeah it is, I would have continued making it work with both, but cosmic upstream bumped rustc version to the most recently released version and nixpkgs has stated they don't want to backport that version to stable :/

@lilyinstarlight
Copy link
Owner

Fortunately nixos-unstable isn't that much different than stable for desktop/workststion use-case aside from software generally being newer

@Thatoo
Copy link
Author

Thatoo commented Jul 18, 2024

Thank you for your work, your effort, your time and your explanation.

@drakon64
Copy link
Sponsor Contributor

drakon64 commented Aug 7, 2024

@Thatoo Support for NixOS Stable was re-added in 39c6d79

@Tommimon
Copy link

Tommimon commented Sep 21, 2024

@Thatoo Support for NixOS Stable was re-added in 39c6d79

Do caches work for you when using NixOS Stable? I have to compile all the Cosmic components.

@drakon64
Copy link
Sponsor Contributor

Caches work fine for me on Stable

@Tommimon
Copy link

I can confirm that after following the instructions correctly and running nixos-rebuild test before adding any Cosmic related option to the configuration it worked, sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants