nixos/flipperzero: init
This commit is contained in:
18
nixos/modules/hardware/flipperzero.nix
Normal file
18
nixos/modules/hardware/flipperzero.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -53,6 +53,7 @@
|
|||||||
./hardware/cpu/intel-sgx.nix
|
./hardware/cpu/intel-sgx.nix
|
||||||
./hardware/device-tree.nix
|
./hardware/device-tree.nix
|
||||||
./hardware/digitalbitbox.nix
|
./hardware/digitalbitbox.nix
|
||||||
|
./hardware/flipperzero.nix
|
||||||
./hardware/flirc.nix
|
./hardware/flirc.nix
|
||||||
./hardware/gkraken.nix
|
./hardware/gkraken.nix
|
||||||
./hardware/gpgsmartcards.nix
|
./hardware/gpgsmartcards.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user