5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
23 lines
656 B
Nix
23 lines
656 B
Nix
{ lib, pkgs, config, ... }:
|
|
|
|
let
|
|
cfg = config.programs.waybar;
|
|
in
|
|
{
|
|
options.programs.waybar = {
|
|
enable = lib.mkEnableOption "waybar, a highly customizable Wayland bar for Sway and Wlroots based compositors";
|
|
package = lib.mkPackageOption pkgs "waybar" { };
|
|
};
|
|
|
|
config = lib.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 = [ lib.maintainers.FlorianFranzen ];
|
|
}
|