587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
25 lines
651 B
Nix
25 lines
651 B
Nix
{ lib, pkgs, config, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.waybar;
|
|
in
|
|
{
|
|
options.programs.waybar = {
|
|
enable = mkEnableOption "waybar, a highly customizable Wayland bar for Sway and Wlroots based compositors";
|
|
package = mkPackageOption pkgs "waybar" { };
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
systemd.user.services.waybar = {
|
|
description = "Waybar as systemd service";
|
|
wantedBy = [ "graphical-session.target" ];
|
|
partOf = [ "graphical-session.target" ];
|
|
script = "${cfg.package}/bin/waybar";
|
|
};
|
|
};
|
|
|
|
meta.maintainers = [ maintainers.FlorianFranzen ];
|
|
}
|