fork/home-manager
git clone https://git.julia.blue/fork/home-manager
44635279
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7programs . bat = { 8enable = true ; 9 10config = { 11theme = "TwoDark" ; 12pager = "less -FR" ; 13map-syntax = [ "*.jenkinsfile:Groovy" "*.props:Java Properties" ]; 14}; 15 16themes . testtheme . src = pkgs . writeText "testtheme.tmTheme" '' 17This is a test theme. 18'' ; 19 20syntaxes . testsyntax . src = pkgs . writeText "testsyntax.sublime-syntax" '' 21This is a test syntax. 22'' ; 23}; 24 25test . stubs . bat = { }; 26 27nmt . script = '' 28assertFileExists home-files/.config/bat/config 29assertFileContent home-files/.config/bat/config ${ 30pkgs . writeText "bat.expected" '' 31--map-syntax='*.jenkinsfile:Groovy' 32--map-syntax='*.props:Java Properties' 33--pager='less -FR' 34--theme='TwoDark' 35'' 36} 37 38assertFileExists home-files/.config/bat/themes/testtheme.tmTheme 39assertFileContent home-files/.config/bat/themes/testtheme.tmTheme ${ 40pkgs . writeText "bat.expected" '' 41This is a test theme. 42'' 43} 44 45assertFileExists home-files/.config/bat/syntaxes/testsyntax.sublime-syntax 46assertFileContent home-files/.config/bat/syntaxes/testsyntax.sublime-syntax ${ 47pkgs . writeText "bat.expected" '' 48This is a test syntax. 49'' 50} 51'' ; 52}; 53}