nix-config/modules/hardware/wifi.nix
2025-02-28 00:04:49 +01:00

22 lines
389 B
Nix

{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.hardware.wifi;
in {
options = {
horseman.hardware.wifi = {
enable = mkEnableOption "";
};
};
config = mkIf cfg.enable {
networking.networkmanager.enable = true;
users.users.horseman.extraGroups = ["networkmanager"];
};
}