nixos/common/sj-live-usb/pkg: improve mkSimpleTrayService
Add a description field
This commit is contained in:
parent
d6bc21171d
commit
5ab3bfc58c
1 changed files with 5 additions and 2 deletions
|
@ -12,9 +12,9 @@ let
|
|||
ref = "master";
|
||||
};
|
||||
|
||||
mkSimpleTrayService = { execStart }: {
|
||||
mkSimpleTrayService = { execStart, description }: {
|
||||
Unit = {
|
||||
Description = "pasystray applet";
|
||||
Description = description;
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
@ -210,14 +210,17 @@ in {
|
|||
services = {
|
||||
redshift-gtk = mkSimpleTrayService {
|
||||
execStart = "${pkgs.redshift}/bin/redshift-gtk -v -l 47.6691:9.1698 -t 7000:4500 -m randr";
|
||||
description = "redshift gtk applet";
|
||||
};
|
||||
|
||||
pasystray = mkSimpleTrayService {
|
||||
execStart = "${pkgs.pasystray}/bin/pasystray";
|
||||
description = "pasystray applet";
|
||||
};
|
||||
|
||||
cbatticon = mkSimpleTrayService {
|
||||
execStart = "${pkgs.cbatticon}/bin/cbatticon";
|
||||
description = "cbatticon applet";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue