nixos/streamcontroller: init

This commit is contained in:
Ming-Chuan 2024-08-18 00:06:09 -07:00 committed by Sandro Jäckel
parent d1d8d02bea
commit fc8e88205b
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 23 additions and 0 deletions

View File

@ -286,6 +286,7 @@
./programs/ssh.nix ./programs/ssh.nix
./programs/starship.nix ./programs/starship.nix
./programs/steam.nix ./programs/steam.nix
./programs/streamcontroller.nix
./programs/streamdeck-ui.nix ./programs/streamdeck-ui.nix
./programs/sysdig.nix ./programs/sysdig.nix
./programs/system-config-printer.nix ./programs/system-config-printer.nix

View File

@ -0,0 +1,22 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.streamcontroller;
in
{
options.programs.streamcontroller = {
enable = lib.mkEnableOption "StreamController";
package = lib.mkPackageOption pkgs "streamcontroller" { default = [ "streamcontroller" ]; };
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
services.udev.packages = [ cfg.package ];
};
meta.maintainers = with lib.maintainers; [ sifmelcara ];
}