Regenerated
This commit is contained in:
@@ -2,12 +2,17 @@
|
||||
|
||||
let
|
||||
waybarPath = "${pkgs.waybar}/bin/waybar";
|
||||
|
||||
# Pick the first non-system user automatically
|
||||
myUser = builtins.head (builtins.filter (u: config.users.users.${u}.isNormalUser != false) (builtins.attrNames config.users.users));
|
||||
in
|
||||
{
|
||||
# Install Waybar in the system
|
||||
environment.systemPackages = [
|
||||
pkgs.waybar
|
||||
];
|
||||
|
||||
# User systemd service for Waybar
|
||||
systemd.user.services.waybar = {
|
||||
description = "Waybar for Hyprland";
|
||||
after = [ "graphical-session.target" ];
|
||||
@@ -18,7 +23,7 @@ in
|
||||
Environment = ''
|
||||
WAYLAND_DISPLAY=${config.environment.sessionVariables.WAYLAND_DISPLAY or "wayland-0"}
|
||||
XDG_CURRENT_DESKTOP=Hyprland
|
||||
XDG_RUNTIME_DIR=/run/user/${config.users.users.henrov.uid}
|
||||
XDG_RUNTIME_DIR=/run/user/${config.users.users.${myUser}.uid}
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user