COSMIC
COSMIC is a desktop environment developed in the Rust programming language, using the iced cross platform GUI library for Rust, and Smithay as building blocks for its compositor, cosmic-comp. Cosmic-comp is comparable to smithay's own anvil compositor demonstration, just like the Wayland project uses Weston as demo compositor.
COSMIC was primarily developed for use in the Pop!_OS distribution.
In Progress
COSMIC support in nixpkgs is still in development. You can follow progress via the tracking issue. It is not currently possible to run COSMIC without manually setting up a lot of configuration.
COSMIC Packages
While the whole desktop is not configured many packages are available in nixpkgs already. You can search for packages with a query similar to this one https://search.nixos.org/packages?query=cosmic&from=0&size=1000&sort=relevance&channel=unstable. Note that not all of the results will be part of the COSMIC desktop.
Experimental Flake
As of now (August 2024), there is no way to obtain COSMIC from nixpkgs, but you can get it from this flake github repo. If you have a system76 machine, add it to your config with
hardware.system76.enableAll = true;
and turn other power management features off for the fullest experience. If however you have a non-system76 machine, you should continue using whatever power management features you were using, such as power-profiles-daemon, TLP, and auto-cpufreq.