mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 21:49:48 +01:00
32 lines
662 B
Nix
32 lines
662 B
Nix
|
{ 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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|