fork/home-manager
git clone https://git.julia.blue/fork/home-manager
1e5d741e
master
1{ ...} : 2 3{ 4services . espanso = { 5enable = true ; 6configs = { default = { show_notifications = false ; }; }; 7matches = { 8base = { 9matches = [ 10{ 11trigger = ":now" ; 12replace = "It's {{currentdate}} {{currenttime}}" ; 13} 14{ 15trigger = ":hello" ; 16replace = '' 17line1 18line2'' ; 19} 20{ 21regex = ":hi(?P<person>.*)\\." ; 22replace = "Hi {{person}}!" ; 23} 24]; 25global_vars = [ 26{ 27name = "currentdate" ; 28type = "date" ; 29params = { format = "%d/%m/%Y" ; }; 30} 31{ 32name = "currenttime" ; 33type = "date" ; 34params = { format = "%R" ; }; 35} 36]; 37}; 38}; 39}; 40 41test . stubs . espanso = { }; 42 43nmt . script = '' 44serviceFile =home-files/.config/systemd/user/espanso.service 45assertFileExists " $ serviceFile " 46assertFileContent " $ serviceFile " ${ ./basic-configuration.service } 47 48configFile =home-files/.config/espanso/config/default.yml 49assertFileExists " $ configFile " 50assertFileContent " $ configFile " ${ ./basic-configuration.yaml } 51 52matchFile =home-files/.config/espanso/match/base.yml 53assertFileExists " $ matchFile " 54assertFileContent " $ matchFile " ${ ./basic-matches.yaml } 55'' ; 56}