fork/home-manager
git clone https://git.julia.blue/fork/home-manager
7c320a53
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7home . stateVersion = "22.05" ; 8 9programs . waybar = { 10package = config . lib . test . mkStubPackage { outPath = "@waybar@" ; }; 11enable = true ; 12settings = [{ 13modules-center = [ "test" ]; 14modules = { "test" = { }; }; 15}]; 16}; 17 18test . asserts . assertions . expected = [ '' 19The `programs.waybar.settings.[].modules` option has been removed. 20It is now possible to declare modules in the configuration without nesting them under the `modules` option. 21'' ]; 22 23nmt . script = '' 24assertPathNotExists home-files/.config/waybar/style.css 25assertFileContent \ 26home-files/.config/waybar/config \ 27${ 28builtins . toFile "waybar-deprecated-modules-option.json" '' 29[ 30{ 31"modules-center": [ 32"test" 33], 34"modules-left": [], 35"modules-right": [], 36"test": {} 37} 38] 39'' 40} 41'' ; 42}; 43}