fork/home-manager
git clone https://git.julia.blue/fork/home-manager
c82bc787
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7# Test fallback behavior for stateVersion >= 20.09, which is pure. 8xdg . enable = lib . mkForce false ; 9home . stateVersion = "20.09" ; 10 11xdg . configFile . test . text = "config" ; 12xdg . dataFile . test . text = "data" ; 13home . file . " ${ config . xdg . cacheHome } /test" . text = "cache" ; 14home . file . " ${ config . xdg . stateHome } /test" . text = "state" ; 15 16nmt . script = '' 17assertFileExists home-files/.config/test 18assertFileExists home-files/.local/share/test 19assertFileExists home-files/.cache/test 20assertFileExists home-files/.local/state/test 21assertFileContent \ 22home-files/.config/test \ 23${ builtins . toFile "test" "config" } 24assertFileContent \ 25home-files/.local/share/test \ 26${ builtins . toFile "test" "data" } 27assertFileContent \ 28home-files/.cache/test \ 29${ builtins . toFile "test" "cache" } 30assertFileContent \ 31home-files/.local/state/test \ 32${ builtins . toFile "test" "state" } 33'' ; 34}; 35}