mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
19 lines
333 B
Nix
19 lines
333 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
|
||
|
cfg = config.hardware.flipperzero;
|
||
|
|
||
|
in
|
||
|
|
||
|
{
|
||
|
options.hardware.flipperzero.enable = mkEnableOption "udev rules and software for Flipper Zero devices";
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
environment.systemPackages = [ pkgs.qFlipper ];
|
||
|
services.udev.packages = [ pkgs.qFlipper ];
|
||
|
};
|
||
|
}
|