2023-11-18 10:58:04 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2023-12-15 18:40:18 +00:00
|
|
|
cfg = config.myFlake.hardware.accessories.piper;
|
2023-11-18 10:58:04 +00:00
|
|
|
in {
|
|
|
|
options = {
|
2023-12-15 18:40:18 +00:00
|
|
|
myFlake.hardware.accessories.piper.enable =
|
2023-11-18 10:58:04 +00:00
|
|
|
lib.mkEnableOption "Whether to enable Piper.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [pkgs.piper];
|
|
|
|
services.ratbagd.enable = true;
|
|
|
|
};
|
|
|
|
}
|