From 9fc2a0198c966cd3fae67103e2d6d5ae70692b91 Mon Sep 17 00:00:00 2001
From: NullBite <me@nullbite.com>
Date: Fri, 28 Jun 2024 23:54:37 -0400
Subject: [PATCH] home/hyprland: enable waybar

---
 home/common/wm/default.nix         | 3 +++
 home/sessions/hyprland/default.nix | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/home/common/wm/default.nix b/home/common/wm/default.nix
index e7cab47..690e939 100644
--- a/home/common/wm/default.nix
+++ b/home/common/wm/default.nix
@@ -58,6 +58,9 @@ in
     ];
 
     programs = {
+      waybar = {
+        enable = true;
+      };
 
       swaylock = {
         enable = true;
diff --git a/home/sessions/hyprland/default.nix b/home/sessions/hyprland/default.nix
index 3d908fc..10101e6 100644
--- a/home/sessions/hyprland/default.nix
+++ b/home/sessions/hyprland/default.nix
@@ -61,6 +61,7 @@ let
       ${pkgs.systemd}/bin/systemctl --user restart xdg-desktop-portal.service
     '';
 
+  bar-cmd = "${pkgs.waybar}/bin/waybar";
   # Hyprland workspace configuration
   mainWorkspaces = builtins.genList (x: x+1) (9 ++ [0]);
   workspaceName = key: let
@@ -152,6 +153,7 @@ in
           polkit-agent
           idle-cmd
           xdpg-workaround
+          bar-cmd
         ];
 
         # Source a file (multi-file configs)