mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 00:13:55 -05:00
waybar: use existing PATH otherwise nwg-drawer can't launch applications
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
This commit is contained in:
parent
3ad1cf542f
commit
1a173bb10d
|
@ -7,6 +7,26 @@
|
|||
cfg = config.ar.home;
|
||||
in {
|
||||
config = lib.mkIf cfg.services.waybar.enable {
|
||||
home.packages =
|
||||
(with pkgs; [
|
||||
blueberry
|
||||
bluez
|
||||
coreutils
|
||||
getopt
|
||||
gnugrep
|
||||
libnotify
|
||||
mako
|
||||
networkmanager
|
||||
networkmanager_dmenu
|
||||
nwg-drawer
|
||||
pavucontrol
|
||||
procps
|
||||
rofi-power-menu
|
||||
systemd
|
||||
])
|
||||
++ lib.optional (cfg.desktop.hyprland.enable) config.wayland.windowManager.hyprland.package
|
||||
++ lib.optional (cfg.desktop.sway.enable) config.wayland.windowManager.sway.package;
|
||||
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
|
||||
|
@ -320,35 +340,7 @@ in {
|
|||
systemd.user.services.waybar = {
|
||||
Install.WantedBy = lib.mkForce (lib.optional (cfg.desktop.hyprland.enable) "hyprland-session.target" ++ lib.optional (cfg.desktop.sway.enable) "sway-session.target");
|
||||
|
||||
Service = {
|
||||
Environment = lib.mkForce [
|
||||
"PATH=${
|
||||
lib.makeBinPath ([
|
||||
config.programs.rofi.package
|
||||
config.wayland.windowManager.hyprland.package
|
||||
config.wayland.windowManager.sway.package
|
||||
]
|
||||
++ (with pkgs; [
|
||||
blueberry
|
||||
bluez
|
||||
coreutils
|
||||
getopt
|
||||
gnugrep
|
||||
libnotify
|
||||
mako
|
||||
networkmanager
|
||||
networkmanager_dmenu
|
||||
nwg-drawer
|
||||
pavucontrol
|
||||
procps
|
||||
rofi-power-menu
|
||||
systemd
|
||||
]))
|
||||
}"
|
||||
];
|
||||
|
||||
Restart = lib.mkForce "no";
|
||||
};
|
||||
Service.Restart = lib.mkForce "no";
|
||||
|
||||
Unit.BindsTo = lib.optional (cfg.desktop.hyprland.enable) "hyprland-session.target" ++ lib.optional (cfg.desktop.sway.enable) "sway-session.target";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue