mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
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 {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
cfg.package
|
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 ];
|
services.udev.packages = [ cfg.package ];
|
||||||
|
|
|
@ -24,15 +24,23 @@ python3Packages.buildPythonApplication rec {
|
||||||
./update-pillow.patch
|
./update-pillow.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
desktopItems = [ (makeDesktopItem {
|
desktopItems = let
|
||||||
|
common = {
|
||||||
name = "streamdeck-ui";
|
name = "streamdeck-ui";
|
||||||
desktopName = "Stream Deck UI";
|
desktopName = "Stream Deck UI";
|
||||||
icon = "streamdeck-ui";
|
icon = "streamdeck-ui";
|
||||||
exec = "streamdeck --no-ui";
|
exec = "streamdeck";
|
||||||
comment = "UI for the Elgato Stream Deck";
|
comment = "UI for the Elgato Stream Deck";
|
||||||
categories = [ "Utility" ];
|
categories = [ "Utility" ];
|
||||||
|
};
|
||||||
|
in builtins.map makeDesktopItem [
|
||||||
|
common
|
||||||
|
(common // {
|
||||||
|
name = "${common.name}-noui";
|
||||||
|
exec = "${common.exec} --no-ui";
|
||||||
noDisplay = true;
|
noDisplay = true;
|
||||||
}) ];
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue