2019-02-12 12:03:07 +01:00
|
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options.programs.waybar = {
|
2022-08-28 21:18:44 +02:00
|
|
|
enable = mkEnableOption (lib.mdDoc "waybar");
|
2019-02-12 12:03:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.programs.waybar.enable {
|
|
|
|
systemd.user.services.waybar = {
|
|
|
|
description = "Waybar as systemd service";
|
|
|
|
wantedBy = [ "graphical-session.target" ];
|
|
|
|
partOf = [ "graphical-session.target" ];
|
|
|
|
script = "${pkgs.waybar}/bin/waybar";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = [ maintainers.FlorianFranzen ];
|
|
|
|
}
|