nixos/streamdeck-ui: init
This commit is contained in:
parent
68f01e2424
commit
3ba735cce2
|
@ -215,6 +215,7 @@
|
||||||
./programs/systemtap.nix
|
./programs/systemtap.nix
|
||||||
./programs/starship.nix
|
./programs/starship.nix
|
||||||
./programs/steam.nix
|
./programs/steam.nix
|
||||||
|
./programs/streamdeck-ui.nix
|
||||||
./programs/sway.nix
|
./programs/sway.nix
|
||||||
./programs/system-config-printer.nix
|
./programs/system-config-printer.nix
|
||||||
./programs/thefuck.nix
|
./programs/thefuck.nix
|
||||||
|
|
28
nixos/modules/programs/streamdeck-ui.nix
Normal file
28
nixos/modules/programs/streamdeck-ui.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.programs.streamdeck-ui;
|
||||||
|
in {
|
||||||
|
options.programs.streamdeck-ui = {
|
||||||
|
enable = mkEnableOption "streamdeck-ui";
|
||||||
|
|
||||||
|
autoStart = mkOption {
|
||||||
|
default = true;
|
||||||
|
type = types.bool;
|
||||||
|
description = "Whether streamdeck-ui should be started automatically.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
streamdeck-ui
|
||||||
|
(mkIf cfg.autoStart (makeAutostartItem { name = "streamdeck-ui"; package = streamdeck-ui; }))
|
||||||
|
];
|
||||||
|
|
||||||
|
services.udev.packages = with pkgs; [ streamdeck-ui ];
|
||||||
|
};
|
||||||
|
|
||||||
|
meta.maintainers = with maintainers; [ majiir ];
|
||||||
|
}
|
Loading…
Reference in a new issue