21 lines
309 B
Nix
21 lines
309 B
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
username,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
options = {
|
||
|
clip.enable = lib.mkEnableOption "";
|
||
|
};
|
||
|
config = lib.mkIf config.clip.enable {
|
||
|
home-manager.users.${username} = {
|
||
|
home.packages = with pkgs; [
|
||
|
wl-clipboard
|
||
|
];
|
||
|
|
||
|
services.cliphist.enable = true;
|
||
|
};
|
||
|
};
|
||
|
}
|