home-manager/modules/services/pasystray.nix

32 lines
662 B
Nix
Raw Normal View History

2018-08-21 15:52:45 +02:00
{ config, lib, pkgs, ... }:
with lib;
{
meta.maintainers = [ maintainers.pltanton ];
options = {
services.pasystray = {
enable = mkEnableOption "PulseAudio system tray";
};
};
config = mkIf config.services.pasystray.enable {
systemd.user.services.pasystray = {
Unit = {
Description = "PulseAudio system tray";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.pasystray}/bin/pasystray";
};
};
};
}