pasystray: add module
This commit is contained in:
parent
da8307cd26
commit
90bcaaf582
|
@ -765,6 +765,13 @@ in
|
||||||
A new module is available: 'programs.msmtp'.
|
A new module is available: 'programs.msmtp'.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
time = "2018-08-21T20:13:50+00:00";
|
||||||
|
message = ''
|
||||||
|
A new module is available: 'services.pasystray'.
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,7 @@ let
|
||||||
./services/network-manager-applet.nix
|
./services/network-manager-applet.nix
|
||||||
./services/owncloud-client.nix
|
./services/owncloud-client.nix
|
||||||
./services/parcellite.nix
|
./services/parcellite.nix
|
||||||
|
./services/pasystray.nix
|
||||||
./services/polybar.nix
|
./services/polybar.nix
|
||||||
./services/random-background.nix
|
./services/random-background.nix
|
||||||
./services/redshift.nix
|
./services/redshift.nix
|
||||||
|
|
31
modules/services/pasystray.nix
Normal file
31
modules/services/pasystray.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue