mirror of
https://github.com/nix-community/home-manager
synced 2024-12-04 08:59:46 +01:00
7c320a5325
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.
24 lines
543 B
Nix
24 lines
543 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "21.11";
|
|
|
|
programs.waybar = {
|
|
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
|
|
enable = true;
|
|
systemd.enable = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertPathNotExists home-files/.config/waybar/config
|
|
assertPathNotExists home-files/.config/waybar/style.css
|
|
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/waybar.service \
|
|
${./systemd-with-graphical-session-target.service}
|
|
'';
|
|
};
|
|
}
|