mirror of
https://github.com/nix-community/home-manager
synced 2024-08-17 01:26:31 +02:00
The `style` option now also accepts a path instead of a text configuration. Keeping up with new Waybar options is annoying, so make the module a freeform module. The `modules` option will be removed in release 22.05. The logic to generate warnings for modules and everything was removed. I don't want to maintain the code that generates these warnings anymore.
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "21.11";
|
|
|
|
programs.waybar = {
|
|
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
|
|
enable = true;
|
|
style = ''
|
|
* {
|
|
border: none;
|
|
border-radius: 0;
|
|
font-family: Source Code Pro;
|
|
font-weight: bold;
|
|
color: #abb2bf;
|
|
font-size: 18px;
|
|
min-height: 0px;
|
|
}
|
|
window#waybar {
|
|
background: #16191C;
|
|
color: #aab2bf;
|
|
}
|
|
#window {
|
|
padding: 0 0px;
|
|
}
|
|
#workspaces button:hover {
|
|
box-shadow: inherit;
|
|
text-shadow: inherit;
|
|
background: #16191C;
|
|
border: #16191C;
|
|
padding: 0 3px;
|
|
}
|
|
'';
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertPathNotExists home-files/.config/waybar/config
|
|
assertFileContent \
|
|
home-files/.config/waybar/style.css \
|
|
${./styling-expected.css}
|
|
'';
|
|
};
|
|
}
|