2025-07-08 17:48:22 +02:00
|
|
|
{ pkgs, ... }:
|
2023-09-27 10:43:23 +02:00
|
|
|
{
|
2023-04-24 10:38:57 +02:00
|
|
|
example-with-str = {
|
|
|
|
clipboard = {
|
|
|
|
register = "unnamed";
|
|
|
|
|
|
|
|
providers.xclip.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
example-with-package = {
|
|
|
|
clipboard = {
|
|
|
|
register = [
|
|
|
|
"unnamed"
|
|
|
|
"unnamedplus"
|
|
|
|
];
|
|
|
|
|
|
|
|
providers.xsel.enable = true;
|
|
|
|
};
|
|
|
|
};
|
2024-11-15 15:27:53 -03:00
|
|
|
|
|
|
|
example-with-raw-lua = {
|
|
|
|
clipboard = {
|
|
|
|
register.__raw = ''vim.env.SSH_TTY and "" or "unnamedplus"'';
|
2025-07-08 17:48:22 +02:00
|
|
|
|
|
|
|
# wl-copy is only available on linux
|
|
|
|
providers.wl-copy.enable = pkgs.stdenv.hostPlatform.isLinux;
|
2024-11-15 15:27:53 -03:00
|
|
|
};
|
|
|
|
};
|
2023-04-24 10:38:57 +02:00
|
|
|
}
|