mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
19 lines
341 B
Nix
19 lines
341 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.hardware.flipperzero;
|
|
|
|
in
|
|
|
|
{
|
|
options.hardware.flipperzero.enable = mkEnableOption (mdDoc "udev rules and software for Flipper Zero devices");
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ pkgs.qFlipper ];
|
|
services.udev.packages = [ pkgs.qFlipper ];
|
|
};
|
|
}
|