nixos/streamcontroller: init
This commit is contained in:
parent
d1d8d02bea
commit
fc8e88205b
@ -286,6 +286,7 @@
|
||||
./programs/ssh.nix
|
||||
./programs/starship.nix
|
||||
./programs/steam.nix
|
||||
./programs/streamcontroller.nix
|
||||
./programs/streamdeck-ui.nix
|
||||
./programs/sysdig.nix
|
||||
./programs/system-config-printer.nix
|
||||
|
22
nixos/modules/programs/streamcontroller.nix
Normal file
22
nixos/modules/programs/streamcontroller.nix
Normal 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 ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user