Files
nix-config/programs/wm/common/waybar/default.nix
2025-12-06 20:43:53 +01:00

29 lines
464 B
Nix

{
pkgs,
monitorSetup,
...
}:
{
programs.waybar = {
enable = true;
package = pkgs.waybar;
}
// (
if monitorSetup == "single" then
import ./single.nix
else if monitorSetup == "dual" then
import ./dual.nix
else if monitorSetup == "side" then
import ./side.nix
else
{ }
);
home.file.".config/waybar" = {
source = ./configs;
# copy the scripts directory recursively
recursive = true;
};
}