fork/home-manager
git clone https://git.julia.blue/fork/home-manager
70c5b268
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7xdg . configHome = /. + " ${ config . home . homeDirectory } /.dummy-config" ; 8xdg . dataHome = /. + " ${ config . home . homeDirectory } /.dummy-data" ; 9xdg . cacheHome = /. + " ${ config . home . homeDirectory } /.dummy-cache" ; 10xdg . stateHome = /. + " ${ config . home . homeDirectory } /.dummy-state" ; 11 12xdg . configFile . test . text = "config" ; 13xdg . dataFile . test . text = "data" ; 14home . file . " ${ config . xdg . cacheHome } /test" . text = "cache" ; 15home . file . " ${ config . xdg . stateHome } /test" . text = "state" ; 16 17nmt . script = '' 18assertFileExists home-files/.dummy-config/test 19assertFileExists home-files/.dummy-cache/test 20assertFileExists home-files/.dummy-data/test 21assertFileExists home-files/.dummy-state/test 22assertFileContent \ 23home-files/.dummy-config/test \ 24${ builtins . toFile "test" "config" } 25assertFileContent \ 26home-files/.dummy-data/test \ 27${ builtins . toFile "test" "data" } 28assertFileContent \ 29home-files/.dummy-cache/test \ 30${ builtins . toFile "test" "cache" } 31assertFileContent \ 32home-files/.dummy-state/test \ 33${ builtins . toFile "test" "state" } 34'' ; 35}; 36}