mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 16:59:43 +01:00
3db6036775
Co-authored-by: Bruno Inec <binec@scaleway.com>
29 lines
711 B
Nix
29 lines
711 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "21.11";
|
|
|
|
programs.waybar = {
|
|
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
|
|
enable = true;
|
|
settings = let
|
|
settingsComplex = (import ./settings-complex.nix {
|
|
inherit config lib pkgs;
|
|
}).config.programs.waybar.settings;
|
|
in {
|
|
mainBar = builtins.head settingsComplex;
|
|
secondaryBar = builtins.elemAt settingsComplex 1;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertPathNotExists home-files/.config/waybar/style.css
|
|
assertFileContent \
|
|
home-files/.config/waybar/config \
|
|
${./settings-complex-expected.json}
|
|
'';
|
|
};
|
|
}
|