Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib)
|
|
mkEnableOption
|
|
mkPackageOption
|
|
mkRemovedOptionModule
|
|
optionalString
|
|
mkIf
|
|
;
|
|
cfg = config.programs.skim;
|
|
in
|
|
{
|
|
imports = [
|
|
(mkRemovedOptionModule [ "programs" "skim" "fuzzyCompletion" ]
|
|
"programs.skim.fuzzyCompletion has been removed. Completions are now included in the package itself."
|
|
)
|
|
];
|
|
|
|
options = {
|
|
programs.skim = {
|
|
enable = mkEnableOption "skim fuzzy finder";
|
|
keybindings = mkEnableOption "skim keybindings";
|
|
package = mkPackageOption pkgs "skim" { };
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
programs.bash.interactiveShellInit = optionalString cfg.keybindings ''
|
|
source ${cfg.package}/share/skim/key-bindings.bash
|
|
'';
|
|
|
|
programs.zsh.interactiveShellInit = optionalString cfg.keybindings ''
|
|
source ${cfg.package}/share/skim/key-bindings.zsh
|
|
'';
|
|
|
|
programs.fish.interactiveShellInit = optionalString cfg.keybindings ''
|
|
source ${cfg.package}/share/skim/key-bindings.fish && skim_key_bindings
|
|
'';
|
|
};
|
|
}
|