streamdeck-ui: split desktop items
This commit is contained in:
parent
0fb2fbc393
commit
44813a8a61
2 changed files with 18 additions and 10 deletions
|
@ -24,7 +24,7 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
cfg.package
|
||||
(mkIf cfg.autoStart (makeAutostartItem { name = "streamdeck-ui"; package = cfg.package; }))
|
||||
(mkIf cfg.autoStart (makeAutostartItem { name = "streamdeck-ui-noui"; package = cfg.package; }))
|
||||
];
|
||||
|
||||
services.udev.packages = [ cfg.package ];
|
||||
|
|
|
@ -24,15 +24,23 @@ python3Packages.buildPythonApplication rec {
|
|||
./update-pillow.patch
|
||||
];
|
||||
|
||||
desktopItems = [ (makeDesktopItem {
|
||||
name = "streamdeck-ui";
|
||||
desktopName = "Stream Deck UI";
|
||||
icon = "streamdeck-ui";
|
||||
exec = "streamdeck --no-ui";
|
||||
comment = "UI for the Elgato Stream Deck";
|
||||
categories = [ "Utility" ];
|
||||
noDisplay = true;
|
||||
}) ];
|
||||
desktopItems = let
|
||||
common = {
|
||||
name = "streamdeck-ui";
|
||||
desktopName = "Stream Deck UI";
|
||||
icon = "streamdeck-ui";
|
||||
exec = "streamdeck";
|
||||
comment = "UI for the Elgato Stream Deck";
|
||||
categories = [ "Utility" ];
|
||||
};
|
||||
in builtins.map makeDesktopItem [
|
||||
common
|
||||
(common // {
|
||||
name = "${common.name}-noui";
|
||||
exec = "${common.exec} --no-ui";
|
||||
noDisplay = true;
|
||||
})
|
||||
];
|
||||
|
||||
postInstall =
|
||||
let
|
||||
|
|
Loading…
Reference in a new issue