home/breakerbox: add rest of wayland stuff

This commit is contained in:
2025-08-22 14:34:33 +02:00
parent 32a3bd27a8
commit 652420556c
3 changed files with 6 additions and 10 deletions

View File

@@ -30,6 +30,7 @@ in
./programs/git
./programs/gpg.nix
./programs/home-manager.nix
./programs/hyprland
./programs/jq.nix
./programs/less.nix
./programs/man.nix
@@ -56,6 +57,7 @@ in
./programs/tmux
./programs/uv.nix
./programs/vscode
./programs/waybar.nix
./programs/yazi.nix
./programs/yt-dlp.nix
./programs/zathura.nix
@@ -79,9 +81,6 @@ in
./services/fcitx5.nix
./services/keybase.nix
]) ++ (optionals machineVars.wayland [
./programs/hyprland
./programs/waybar.nix
]) ++ (optionals (!machineVars.wayland) [
./programs/xmonad
# ./programs/xmobar
@@ -161,6 +160,7 @@ in
services.psd.enable = graphics;
services.tumblerd.enable = graphics;
programs.anyrun.enable = machineVars.wayland;
programs.waybar.enable = machineVars.wayland;
wayland.windowManager.hyprland.enable = machineVars.wayland;
}

View File

@@ -1,8 +1,5 @@
{ config, lib, ... }:
{
wayland.windowManager.hyprland = {
enable = true;
systemd.enable = false;
systemd.enableXdgAutostart = false;

View File

@@ -1,11 +1,10 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
let
cfg = config.programs.waybar;
cfgs = cfg.settings.mainBar;
in
{
programs.waybar = {
enable = true;
systemd.enable = true;
settings = {
@@ -237,7 +236,7 @@ in
#'';
};
systemd.user.services.waybar = {
systemd.user.services.waybar = lib.mkIf (cfg.enable && cfg.systemd.enable){
Service.Environment = [
"DISPLAY=:0"
];