mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
15 lines
329 B
Nix
15 lines
329 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
|
|
cfg = config.hardware.flipperzero;
|
|
|
|
in
|
|
|
|
{
|
|
options.hardware.flipperzero.enable = lib.mkEnableOption "udev rules and software for Flipper Zero devices";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [ pkgs.qFlipper ];
|
|
services.udev.packages = [ pkgs.qFlipper ];
|
|
};
|
|
}
|