1 { config, lib, pkgs, ... }:
4 cfg = config.programs.streamdeck-ui;
7 options.programs.streamdeck-ui = {
8 enable = lib.mkEnableOption "streamdeck-ui";
10 autoStart = lib.mkOption {
12 type = lib.types.bool;
13 description = "Whether streamdeck-ui should be started automatically.";
16 package = lib.mkPackageOption pkgs "streamdeck-ui" {
17 default = [ "streamdeck-ui" ];
22 config = lib.mkIf cfg.enable {
23 environment.systemPackages = [
25 (lib.mkIf cfg.autoStart (pkgs.makeAutostartItem { name = "streamdeck-ui-noui"; package = cfg.package; }))
28 services.udev.packages = [ cfg.package ];
31 meta.maintainers = with lib.maintainers; [ majiir ];