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
511 B
Nix
21 lines
511 B
Nix
3 years ago
|
{ pkgs, config, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.ffnix;
|
||
|
in
|
||
|
{
|
||
|
config = mkIf cfg.enable {
|
||
|
boot.kernelModules = [ "batman_adv" ];
|
||
|
|
||
|
boot.extraModulePackages = []
|
||
|
++ lib.optional (!cfg.batman-legacy) config.boot.kernelPackages.batman_adv
|
||
|
++ lib.optional cfg.batman-legacy (pkgs.batman-adv-legacy config.boot.kernelPackages);
|
||
|
|
||
|
environment.systemPackages = []
|
||
|
++ lib.optional (!cfg.batman-legacy) pkgs.batctl
|
||
|
++ lib.optional cfg.batman-legacy pkgs.batctl-legacy;
|
||
|
};
|
||
|
}
|