Jump to content

Clipboard: Difference between revisions

From Official NixOS Wiki
Klinger (talk | contribs)
Phobos (talk | contribs)
m Clarified Clipboard Managers
 
Line 1: Line 1:
: <blockquote>''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 [[wikipedia:Clipboard_(computing)|Clipboard (Computing)]]</blockquote>
: <blockquote>''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 [[wikipedia:Clipboard_(computing)|Clipboard (Computing)]]</blockquote>


== Options ==
== Clipboard Managers ==
Options supported by NixOS include (but are not limited to):
Clipboard managers provide additional features such as clipboard history or synchronization. Options supported by NixOS include (but are not limited to):


* [https://www.cliphist.com/ cliphist]
* [https://www.cliphist.com/ cliphist]

Latest revision as of 16:19, 6 January 2026

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)

Clipboard Managers

Clipboard managers provide additional features such as clipboard history or synchronization. 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;

    };