1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-22 22:48:31 +02:00

pasystray: add module

This commit is contained in:
Anton Plotnikov 2018-08-21 16:52:45 +03:00 committed by Robert Helgesson
parent da8307cd26
commit 90bcaaf582
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
3 changed files with 39 additions and 0 deletions

View File

@ -765,6 +765,13 @@ in
A new module is available: 'programs.msmtp'.
'';
}
{
time = "2018-08-21T20:13:50+00:00";
message = ''
A new module is available: 'services.pasystray'.
'';
}
];
};
}

View File

@ -71,6 +71,7 @@ let
./services/network-manager-applet.nix
./services/owncloud-client.nix
./services/parcellite.nix
./services/pasystray.nix
./services/polybar.nix
./services/random-background.nix
./services/redshift.nix

View File

@ -0,0 +1,31 @@
{ 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";
};
};
};
}