flake/nixos/modules/hardware/accessories/piper.nix

18 lines
340 B
Nix

{
lib,
config,
pkgs,
...
}: let
cfg = config.myFlake.hardware.accessories.piper;
in {
options = {
myFlake.hardware.accessories.piper.enable =
lib.mkEnableOption "Whether to enable Piper.";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [pkgs.piper];
services.ratbagd.enable = true;
};
}