fork/home-manager
git clone https://git.julia.blue/fork/home-manager
cb09a968
master
1{ pkgs , ...} : 2 3{ 4config = { 5programs . ncmpcpp = { 6enable = true ; 7mpdMusicDir = "/home/user/music" ; 8 9settings = { 10user_interface = "alternative" ; 11display_volume_level = false ; 12playlist_disable_highlight_delay = 0 ; 13}; 14 15bindings = [ 16{ 17key = "j" ; 18command = "scroll_down" ; 19} 20{ 21key = "k" ; 22command = "scroll_up" ; 23} 24{ 25key = "J" ; 26command = [ "select_item" "scroll_down" ]; 27} 28{ 29key = "K" ; 30command = [ "select_item" "scroll_up" ]; 31} 32{ 33key = "x" ; 34command = "delete_playlist_items" ; 35} 36{ 37key = "x" ; 38command = "delete_browser_items" ; 39} 40{ 41key = "x" ; 42command = "delete_stored_playlist" ; 43} 44]; 45}; 46 47test . stubs . ncmpcpp = { }; 48 49nmt . script = '' 50assertFileContent \ 51home-files/.config/ncmpcpp/config \ 52${ ./ncmpcpp-example-settings-expected-config } 53 54assertFileContent \ 55home-files/.config/ncmpcpp/bindings \ 56${ ./ncmpcpp-example-settings-expected-bindings } 57'' ; 58}; 59}