mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 15:19:45 +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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|