mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
18 lines
453 B
Nix
18 lines
453 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
nixvimCfg = config.nixvimConfigs.fiesta;
|
||
|
cfg = nixvimCfg.setups.desktop-utils;
|
||
|
in
|
||
|
{
|
||
|
options.nixvimConfigs.fiesta.setups.desktop-utils.enable =
|
||
|
lib.mkEnableOption "desktop utilities to be used for this Neovim setup";
|
||
|
|
||
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||
|
(lib.mkIf pkgs.stdenv.isLinux {
|
||
|
clipboard.providers.wl-copy.enable = true;
|
||
|
clipboard.providers.xclip.enable = true;
|
||
|
})
|
||
|
]);
|
||
|
}
|