fork/home-manager
git clone https://git.julia.blue/fork/home-manager
eec22729
master
1{ config , ...} : 2 3let 4 5filePath = ./. + "/source with spaces!" ; 6 7in { 8home . file . "oos" . source = config . lib . file . mkOutOfStoreSymlink filePath ; 9 10nmt . script = '' 11assertLinkExists "home-files/oos" 12 13storePath =" $( readlink $ TESTED /home-files/oos) " 14 15if [[ ! -L $ storePath ]]; then 16fail "Expected $ storePath to be a symbolic link, but it was not." 17fi 18 19actual =" $( readlink " $ storePath " ) " 20expected =" ${ toString filePath } " 21if [[ $ actual != $ expected ]]; then 22fail " Symlink home-files/oos should point to $ expected via the Nix store, but it actually points to $ actual ." 23fi 24'' ; 25}