From 423907b530fc476af77507192991d525e57c3324 Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Wed, 1 Oct 2025 13:39:08 +0700 Subject: [PATCH] chore: nix fmt --- modules/home/rsydn/shell/nushell.nix | 31 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/modules/home/rsydn/shell/nushell.nix b/modules/home/rsydn/shell/nushell.nix index b87b68f..d3dccc6 100644 --- a/modules/home/rsydn/shell/nushell.nix +++ b/modules/home/rsydn/shell/nushell.nix @@ -16,30 +16,31 @@ let lib.unique [ homebrewBin homebrewSbin ] else [ ]; - formatPathList = paths: lib.concatMapStrings (path: " \"${path}\"\n") paths; + formatPathList = paths: + lib.concatMapStrings (path: " \"${path}\"\n") paths; in { programs.nushell.enable = lib.mkDefault true; programs.nushell.envFile.text = '' - let nix_paths = [ -${formatPathList [ profileBin systemBin defaultBin ]} ] + let nix_paths = [ + ${formatPathList [ profileBin systemBin defaultBin ]} ] - let homebrew_paths = [ -${formatPathList homebrewPaths} ] + let homebrew_paths = [ + ${formatPathList homebrewPaths} ] - let path_candidates = ($nix_paths | append $homebrew_paths | flatten) + let path_candidates = ($nix_paths | append $homebrew_paths | flatten) - if ($env.PATH? == null) { - $env.PATH = $path_candidates - } else { - for path in $path_candidates { - if not ($env.PATH | any {|it| $it == $path}) { - $env.PATH = ($env.PATH | append $path) + if ($env.PATH? == null) { + $env.PATH = $path_candidates + } else { + for path in $path_candidates { + if not ($env.PATH | any {|it| $it == $path}) { + $env.PATH = ($env.PATH | append $path) + } + } } - } - } - $env.NIX_PROFILES = "/run/current-system/sw ${config.home.profileDirectory}" + $env.NIX_PROFILES = "/run/current-system/sw ${config.home.profileDirectory}" ''; programs.oh-my-posh = {