Jump to content

Clipboard: Difference between revisions

From Official NixOS Wiki
Phobos (talk | contribs)
mNo edit summary
Phobos (talk | contribs)
mNo edit summary
 
Line 8: Line 8:
* wl-clip-persist
* wl-clip-persist
* clipse
* clipse
== Installation ==
Example of installation for cliphist, find additional packages here: https://search.nixos.org/packages.
{{File|3=environment.systemPackages =  [
  pkgs.cliphist
];|name=/etc/nixos/configuration.nix|lang=nix}}


== Home Manager ==
== Home Manager ==

Latest revision as of 22:58, 5 December 2025

The clipboard is a facility used for short-term data storage and/or data transfer between documents or applications, via copy and paste operations. - Wikipedia page on Clipboard (Computing)

Options

Options supported by NixOS include (but are not limited to):

Installation

Example of installation for cliphist, find additional packages here: https://search.nixos.org/packages.

❄︎ /etc/nixos/configuration.nix
environment.systemPackages =  [
  pkgs.cliphist
];

Home Manager

Cliphist

Options may be found at Home Manager - services.cliphist. Example usage shown below:

❄︎ /etc/nixos/home.nix
services.cliphist = {

      enable = true;

      # A Wayland session
      systemdTargets = ["config.wayland.systemd.target"];

      # Sway Target 
      # if using make sure that:
      # "wayland.windowManager.sway.systemd.enable = true;" is set
      #systemdTargets = ["sway-session.target"];

      extraOptions = [
        "-max-dedupe-search"
        "10"
        "-max-items"
        "500"
      ];
      allowImages = true;

    };