cosmic-utils / clipboard-manager

Clipboard manager for COSMIC™
GNU General Public License v3.0
55 stars 7 forks source link

Nix Packaging Support for cosmic-utils/clipboard-manager #98

Closed FelixSchausberger closed 4 weeks ago

FelixSchausberger commented 1 month ago

Hi there!

Thank you for creating this project – it looks like a fantastic clipboard management tool!

I was wondering if there are any plans to package cosmic-utils/clipboard-manager for Nix? It would be awesome to see it available in the Nixpkgs repository for NixOS users. I’d be happy to help with testing if needed.

Thanks in advance!

Best, Felix

wiiznokes commented 1 month ago

Hi, I'm not very familiar with nix but there is a flake in this repo https://github.com/lilyinstarlight/nixos-cosmic/

FelixSchausberger commented 4 weeks ago

Solved it, just in case anyone else comes across the post and has the same question, I did it with said flake and then had to make the following settings in my cosmic.nix:

{
  inputs,
  pkgs,
  ...
}: {
  imports = [
    inputs.nixos-cosmic.nixosModules.default
  ];

  services = {
    desktopManager.cosmic.enable = true;
    displayManager.cosmic-greeter.enable = true;
  };

  environment.systemPackages = with pkgs; [
    cosmic-player
    cosmic-reader
    cosmic-ext-applet-clipboard-manager
    cosmic-ext-applet-emoji-selector
    cosmic-ext-applet-external-monitor-brightness
    cosmic-ext-examine
    cosmic-ext-tweaks
  ];

  # For the clipboard manager to work zwlr_data_control_manager_v1 protocol needs to be available
  environment.sessionVariables.COSMIC_DATA_CONTROL_ENABLED = 1;
}