diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-12-17 00:46:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 00:46:28 +0100 |
commit | d154d50e2c1cd54a0097e57fcb7a9aecfc3cbf96 (patch) | |
tree | e1307a8066bfa519946a4c4fdad2c9d6979a506f /nixos/modules/programs | |
parent | 4428f9f5e9b7e6fca40887385a6966119be3cc70 (diff) | |
parent | 19f7b566a1e94513a44f009e4d16cfcb76002d86 (diff) |
Merge pull request #200856 from aacebedo/aacebedo/streamdeck-ui_package_option
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/streamdeck-ui.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/nixos/modules/programs/streamdeck-ui.nix b/nixos/modules/programs/streamdeck-ui.nix index e933b899c55ec..113d1d49e151a 100644 --- a/nixos/modules/programs/streamdeck-ui.nix +++ b/nixos/modules/programs/streamdeck-ui.nix @@ -4,7 +4,8 @@ with lib; let cfg = config.programs.streamdeck-ui; -in { +in +{ options.programs.streamdeck-ui = { enable = mkEnableOption (lib.mdDoc "streamdeck-ui"); @@ -13,15 +14,20 @@ in { type = types.bool; description = lib.mdDoc "Whether streamdeck-ui should be started automatically."; }; + + package = mkPackageOption pkgs "streamdeck-ui" { + default = [ "streamdeck-ui" ]; + }; + }; config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ - streamdeck-ui - (mkIf cfg.autoStart (makeAutostartItem { name = "streamdeck-ui"; package = streamdeck-ui; })) + cfg.package + (mkIf cfg.autoStart (makeAutostartItem { name = "streamdeck-ui"; package = cfg.package; })) ]; - services.udev.packages = with pkgs; [ streamdeck-ui ]; + services.udev.packages = [ cfg.package ]; }; meta.maintainers = with maintainers; [ majiir ]; |