grimm-nixos-laptop/common/network/default.nix

21 lines
494 B
Nix
Raw Normal View History

2024-04-10 16:51:28 +02:00
{ pkgs, config, lib, ... }:
let
2024-03-24 16:59:47 +01:00
cfg = config.grimmShared;
2024-04-10 16:51:28 +02:00
in
{
config = with cfg; lib.mkIf (enable && network) {
networking.networkmanager.enable = true;
networking.useDHCP = lib.mkDefault true;
2024-03-24 16:59:47 +01:00
2024-04-21 16:02:55 +02:00
hardware.bluetooth.enable = lib.mkDefault laptop_hardware.enable;
2024-04-10 16:51:28 +02:00
environment.systemPackages = with pkgs; [
wireguard-tools
];
};
imports = [ ./bluetooth.nix ];
2024-04-26 22:03:03 +02:00
options.grimmShared.network = lib.mkEnableOption "Enables network manager, wifi and bluetooth";
2024-03-24 16:59:47 +01:00
}