You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
507 B
Nix

{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.ffnix;
in
{
config = mkIf cfg.enable {
boot.kernelModules = [ "batman_adv" ];
boot.extraModulePackages = []
++ lib.optional (!cfg.batmanLegacy) config.boot.kernelPackages.batman_adv
++ lib.optional cfg.batmanLegacy (pkgs.batman-adv-legacy config.boot.kernelPackages);
environment.systemPackages = []
++ lib.optional (!cfg.batmanLegacy) pkgs.batctl
++ lib.optional cfg.batmanLegacy pkgs.batctl-legacy;
};
}