fork/home-manager
git clone https://git.julia.blue/fork/home-manager
8c731978
master
1{ pkgs , ...} : 2 3{ 4programs . nushell = { 5enable = true ; 6 7configFile . text = '' 8let $config = { 9filesize_metric: false 10table_mode: rounded 11use_ls_colors: true 12} 13'' ; 14 15envFile . text = '' 16$env.FOO = 'BAR' 17'' ; 18 19loginFile . text = '' 20# Prints "Hello, World" upon logging into tty1 21if (tty) == "/dev/tty1" { 22echo "Hello, World" 23} 24'' ; 25 26shellAliases = { 27"lsname" = "(ls | get name)" ; 28"ll" = "ls -a" ; 29}; 30 31environmentVariables = { BAR = "$'(echo BAZ)'" ; }; 32}; 33 34test . stubs . nushell = { }; 35 36nmt . script = let 37configDir = if pkgs . stdenv . isDarwin then 38"home-files/Library/Application Support/nushell" 39else 40"home-files/.config/nushell" ; 41in '' 42assertFileContent \ 43" ${ configDir } /config.nu" \ 44${ ./config-expected.nu } 45assertFileContent \ 46" ${ configDir } /env.nu" \ 47${ ./env-expected.nu } 48assertFileContent \ 49" ${ configDir } /login.nu" \ 50${ ./login-expected.nu } 51'' ; 52}