COSMIC: Difference between revisions

From NixOS Wiki
imported>Ahoneybun
No edit summary
imported>Ahoneybun
fix code blocks
Line 24: Line 24:
   ];
   ];
}
}
</syntaxhighlight>
</syntaxhighlight>


You would add it to your main configuration.nix file in /etc/nixos/ like this:
You would add it to your main configuration.nix file in /etc/nixos/ like this:


<code>
<syntaxhighlight lang="nix">
 
   imports =
   imports =
       [
       [
Line 34: Line 36:
           ./unstable.nix
           ./unstable.nix
       ];
       ];
</code>
 
</syntaxhighlight>


then rebuild:
then rebuild:

Revision as of 17:12, 2 November 2023

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.

Installation

Currently packaged in nixpkgs master/unstable are below, one way to install them is to use a configuration file like this:

{ config, pkgs, ...}:

let
  unstable = import
    (builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/master)
    # reuse the current configuration
    { config = config.nixpkgs.config; };
in

{
  environment.systemPackages = with pkgs; [
    unstable.rustc
    unstable.just
    unstable.cosmic-icons
    unstable.cosmic-settings
  ];
}

You would add it to your main configuration.nix file in /etc/nixos/ like this:

   imports =
       [
           ./hardware-configuration.nix
           ./unstable.nix
       ];

then rebuild:

sudo nixos-rebuild switch

COSMIC Comp

https://github.com/NixOS/nixpkgs/tree/nixos-unstable/pkgs/applications/window-managers/cosmic/comp

COSMIC Panel

This also includes the Dock:

https://github.com/NixOS/nixpkgs/tree/nixos-unstable/pkgs/applications/window-managers/cosmic/panel

COSMIC Applet

https://github.com/NixOS/nixpkgs/tree/nixos-unstable/pkgs/applications/window-managers/cosmic/applets

COSMIC Settings

https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/window-managers/cosmic/settings

COSMIC Icons

https://github.com/NixOS/nixpkgs/tree/a10c1225467f721dedbaaa260c006d6d15c8c40b/pkgs/by-name/co/cosmic-icons