1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 07:31:03 +01:00
home-manager/tests/modules/programs/hyprpanel/basic-config.nix
2025-06-23 15:48:27 -05:00

34 lines
721 B
Nix

{ config, ... }:
{
programs.hyprpanel = {
enable = true;
package = config.lib.test.mkStubPackage { name = "hyprpanel"; };
settings = {
bar.battery.label = true;
bar.bluetooth.label = false;
bar.clock.format = "%H:%M:%S";
bar.layouts = {
"*" = {
left = [
"dashboard"
"workspaces"
"media"
];
middle = [ "windowtitle" ];
right = [
"volume"
"network"
"bluetooth"
"notifications"
];
};
};
};
};
nmt.script = ''
assertFileContent \
"home-files/.config/hyprpanel/config.json" \
${./basic-config.json}
'';
}