fork/home-manager
git clone https://git.julia.blue/fork/home-manager
7413408b
master
1{ pkgs , ...} : 2 3let 4shellIntegration = '' 5def-env ya [] { 6let tmp = (mktemp -t "yazi-cwd.XXXXX") 7yazi --cwd-file $tmp 8let cwd = (cat -- $tmp) 9if $cwd != "" and $cwd != $env.PWD { 10cd $cwd 11} 12rm -f $tmp 13} 14'' ; 15in { 16programs . nushell . enable = true ; 17 18programs . yazi = { 19enable = true ; 20enableNushellIntegration = true ; 21}; 22 23test . stubs . yazi = { }; 24 25nmt . script = let 26configPath = if pkgs . stdenv . isDarwin then 27"home-files/Library/Application Support/nushell/config.nu" 28else 29"home-files/.config/nushell/config.nu" ; 30in '' 31assertFileContains ' ${ configPath } ' ' ${ shellIntegration } ' 32'' ; 33}