chore: nix fmt

This commit is contained in:
Rasyidan Akbar F. 2025-10-01 13:39:08 +07:00
commit 423907b530

View file

@ -16,16 +16,17 @@ let
lib.unique [ homebrewBin homebrewSbin ] lib.unique [ homebrewBin homebrewSbin ]
else else
[ ]; [ ];
formatPathList = paths: lib.concatMapStrings (path: " \"${path}\"\n") paths; formatPathList = paths:
lib.concatMapStrings (path: " \"${path}\"\n") paths;
in { in {
programs.nushell.enable = lib.mkDefault true; programs.nushell.enable = lib.mkDefault true;
programs.nushell.envFile.text = '' programs.nushell.envFile.text = ''
let nix_paths = [ let nix_paths = [
${formatPathList [ profileBin systemBin defaultBin ]} ] ${formatPathList [ profileBin systemBin defaultBin ]} ]
let homebrew_paths = [ let homebrew_paths = [
${formatPathList homebrewPaths} ] ${formatPathList homebrewPaths} ]
let path_candidates = ($nix_paths | append $homebrew_paths | flatten) let path_candidates = ($nix_paths | append $homebrew_paths | flatten)