treewide: reformat nixfmt-rfc-style

Reformat repository using new nixfmt-rfc-style.
This commit is contained in:
Austin Horstman 2025-04-07 16:11:29 -05:00
parent 5df48c4255
commit cba2f9ce95
1051 changed files with 37028 additions and 26594 deletions

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkIf types;
@ -12,7 +17,8 @@ let
zh = "z -I -t ."; # fzf
};
in {
in
{
meta.maintainers = [ ];
options.programs.z-lua = {
@ -23,20 +29,21 @@ in {
options = lib.mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "enhanced" "once" "fzf" ];
example = [
"enhanced"
"once"
"fzf"
];
description = ''
List of options to pass to z.lua.
'';
};
enableBashIntegration =
lib.hm.shell.mkBashIntegrationOption { inherit config; };
enableBashIntegration = lib.hm.shell.mkBashIntegrationOption { inherit config; };
enableFishIntegration =
lib.hm.shell.mkFishIntegrationOption { inherit config; };
enableFishIntegration = lib.hm.shell.mkFishIntegrationOption { inherit config; };
enableZshIntegration =
lib.hm.shell.mkZshIntegrationOption { inherit config; };
enableZshIntegration = lib.hm.shell.mkZshIntegrationOption { inherit config; };
enableAliases = lib.mkOption {
default = false;
@ -51,15 +58,11 @@ in {
home.packages = [ cfg.package ];
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
eval "$(${cfg.package}/bin/z --init bash ${
lib.concatStringsSep " " cfg.options
})"
eval "$(${cfg.package}/bin/z --init bash ${lib.concatStringsSep " " cfg.options})"
'';
programs.zsh.initContent = mkIf cfg.enableZshIntegration ''
eval "$(${cfg.package}/bin/z --init zsh ${
lib.concatStringsSep " " cfg.options
})"
eval "$(${cfg.package}/bin/z --init zsh ${lib.concatStringsSep " " cfg.options})"
'';
programs.bash.shellAliases = mkIf cfg.enableAliases aliases;
@ -69,9 +72,7 @@ in {
programs.fish = lib.mkMerge [
{
shellInit = mkIf cfg.enableFishIntegration ''
source (${cfg.package}/bin/z --init fish ${
lib.concatStringsSep " " cfg.options
} | psub)
source (${cfg.package}/bin/z --init fish ${lib.concatStringsSep " " cfg.options} | psub)
'';
}