treewide: Reformat with nixfmt

This commit is contained in:
traxys 2024-05-05 19:39:35 +02:00
parent c6281260dc
commit 62f32bfc71
459 changed files with 28139 additions and 26377 deletions

View file

@ -4,9 +4,11 @@
pkgs,
...
}:
with lib; let
with lib;
let
cfg = config.clipboard;
in {
in
{
options = {
clipboard = {
register = mkOption {
@ -14,9 +16,7 @@ in {
Sets the register to use for the clipboard.
Learn more at https://neovim.io/doc/user/options.html#'clipboard'.
'';
type = with types;
nullOr
(either str (listOf str));
type = with types; nullOr (either str (listOf str));
default = null;
example = "unnamedplus";
};
@ -25,19 +25,17 @@ in {
type = types.submodule {
options =
mapAttrs
(
name: packageName: {
(name: packageName: {
enable = mkEnableOption name;
package = mkPackageOption pkgs packageName {};
}
)
{
wl-copy = "wl-clipboard";
xclip = "xclip";
xsel = "xsel";
};
package = mkPackageOption pkgs packageName { };
})
{
wl-copy = "wl-clipboard";
xclip = "xclip";
xsel = "xsel";
};
};
default = {};
default = { };
description = ''
Package(s) to use as the clipboard provider.
Learn more at `:h clipboard`.
@ -49,9 +47,6 @@ in {
config = {
opts.clipboard = mkIf (cfg.register != null) cfg.register;
extraPackages =
mapAttrsToList
(n: v: v.package)
(filterAttrs (n: v: v.enable) cfg.providers);
extraPackages = mapAttrsToList (n: v: v.package) (filterAttrs (n: v: v.enable) cfg.providers);
};
}