Desktop: enable external clipboard on micro
This commit is contained in:
parent
ad8081bba3
commit
bb6c9ea5d1
2 changed files with 22 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./discord.nix
|
./discord.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
|
./micro.nix
|
||||||
./keepassxc.nix
|
./keepassxc.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
21
roles/desktop/micro.nix
Normal file
21
roles/desktop/micro.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home-manager = {
|
||||||
|
users.toast = { config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.micro = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
# Use xclip/wl-clipboard for copying and pasting
|
||||||
|
clipboard = lib.mkForce "external";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/*
|
||||||
|
On a kde wayland session micro uses xsel or xclip instead of wl-clipboard
|
||||||
|
which doesn't work, so I only install wl-clipboard here to make micro use it
|
||||||
|
*/
|
||||||
|
home.packages = with pkgs; [ wl-clipboard ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue