From 4bc5503e453155113e5bb41196fbcae3499454e3 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 5 Nov 2024 15:34:27 -0500 Subject: [PATCH] waybar: doesn't work --- modules/nixos/linux/gui/hyprland/default.nix | 9 +++++---- modules/nixos/linux/gui/hyprland/waybar.nix | 12 ++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 modules/nixos/linux/gui/hyprland/waybar.nix diff --git a/modules/nixos/linux/gui/hyprland/default.nix b/modules/nixos/linux/gui/hyprland/default.nix index a265486..ec96527 100644 --- a/modules/nixos/linux/gui/hyprland/default.nix +++ b/modules/nixos/linux/gui/hyprland/default.nix @@ -15,11 +15,12 @@ in security.pam.services.hyprlock = { }; home-manager.sharedModules = [{ - imports = [ ./fix-cursor.nix ]; + imports = [ + ./fix-cursor.nix + ./waybar.nix + ]; services.dunst.enable = true; - programs = { - hyprlock.enable = true; - }; + programs.hyprlock.enable = true; home.sessionVariables.NIXOS_OZONE_WL = "1"; }]; diff --git a/modules/nixos/linux/gui/hyprland/waybar.nix b/modules/nixos/linux/gui/hyprland/waybar.nix new file mode 100644 index 0000000..56eb7e2 --- /dev/null +++ b/modules/nixos/linux/gui/hyprland/waybar.nix @@ -0,0 +1,12 @@ +# https://github.com/Alexays/Waybar/wiki/Configuration +{ + # TODO: https://old.reddit.com/r/archlinux/comments/136eaiw/hyprland_with_waybar_config_reloading/jip7oq1/ + programs.waybar = { + enable = true; + settings = { + mainBar = { + output = [ "eDP-1" ]; # Laptop screen only + }; + }; + }; +}