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 + }; + }; + }; +}