lilyinstarlight / nixos-cosmic

Flake for using COSMIC on NixOS
MIT License
321 stars 24 forks source link

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

Open Thatoo opened 1 month ago

Thatoo commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Something like

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

isn't possible?

lilyinstarlight commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

Thatoo commented 1 month ago

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

drakon64 commented 1 month ago

@Thatoo Support for NixOS Stable was re-added in https://github.com/lilyinstarlight/nixos-cosmic/commit/39c6d797e80ecbe4878b10b8341d723da4fc3d71