mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
21 lines
458 B
Nix
21 lines
458 B
Nix
|
{ lib, pkgs, config, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
options.programs.waybar = {
|
||
|
enable = mkEnableOption "waybar";
|
||
|
};
|
||
|
|
||
|
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 ];
|
||
|
}
|