fork/home-manager
git clone https://git.julia.blue/fork/home-manager
0e2f7876
master
1# This is a test primarily concerned with the order of the configuration. The 2# configuration is dynamically generated in alphabetical order of the top-level 3# attribute names. Because of this, it is possible to override top-level 4# attributes that are supposed to be configured in the top-level configuration. 5{ config , ...} : 6 7{ 8services . recoll = { 9enable = true ; 10package = config . lib . test . mkStubPackage { }; 11settings = { 12a = { foo = "bar" ; }; 13b = 10 ; 14c = { 15a = "This should appear as the second section." ; 16b = 53 ; 17aa = true ; 18}; 19d = false ; 20e = 21"This should be the second to the last non-attrset value in the config." ; 22f = { 23a = 24"This should be second to the last for the attribute names with an attrset." ; 25b = 3193 ; 26c = false ; 27d = [ "Hello" "there" ]; 28}; 29foo = { 30bar = "This should be the last attribute with an attrset." ; 31baz = 42 ; 32}; 33g = [ "This" "is" "coming" "from" "a" "list" ]; 34}; 35}; 36 37nmt . script = '' 38assertFileExists home-files/.config/systemd/user/recollindex.service 39assertFileExists home-files/.config/systemd/user/recollindex.timer 40 41assertFileExists home-files/.recoll/recoll.conf 42assertFileContent home-files/.recoll/recoll.conf \ 43${ ./config-format-order.conf } 44'' ; 45}