Specify all necessary dependencies for eww

This commit is contained in:
ItsDrike 2024-06-20 20:14:54 +02:00
parent d55203ed5f
commit 4af1e37781
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -15,7 +15,28 @@ in {
}; };
systemd.user.services = { systemd.user.services = {
"eww" = { "eww" = let
# All dependencies required for eww and for the scripts/widgets it uses
dependencies = with pkgs; [
python3
bash
coreutils
gnugrep
gawk
netcat-openbsd
jq
util-linux
systemd
bluez
upower
wl-gammarelay-rs
gammastep
networkmanager
wireplumber
pulseaudio
hyprland
];
in {
Unit = { Unit = {
Description = "ElKowar's Wacky Widgets (eww) daemon"; Description = "ElKowar's Wacky Widgets (eww) daemon";
After = [ "graphical-session-pre.target" ]; After = [ "graphical-session-pre.target" ];
@ -24,7 +45,8 @@ in {
Service = { Service = {
Type = "simple"; Type = "simple";
Restart = "always"; Restart = "alwayss";
Environment = "PATH=/run/wrappers/bin:${lib.makeBinPath dependencies}";
ExecStart = pkgs.writeShellScript "eww-daemon" '' ExecStart = pkgs.writeShellScript "eww-daemon" ''
${pkgs.eww}/bin/eww daemon --no-daemonize ${pkgs.eww}/bin/eww daemon --no-daemonize
''; '';