wireless: use private wireless module automatically

This commit is contained in:
Infinidoge 2023-07-29 12:12:34 -04:00
parent e83f6ba13a
commit 97bf51e81a
5 changed files with 3 additions and 8 deletions

View file

@ -1,7 +1,5 @@
{ pkgs, lib, private, ... }: {
imports = lib.lists.flatten [
private.nixosModules.wireless
./hardware-configuration.nix
./filesystems.nix
];

View file

@ -1,7 +1,5 @@
{ pkgs, lib, private, ... }: {
imports = lib.lists.flatten [
private.nixosModules.wireless
./hardware-configuration.nix
./filesystems.nix
];

View file

@ -1,8 +1,6 @@
{ lib, private, ... }:
{
imports = lib.lists.flatten [
private.nixosModules.wireless
./hardware-configuration.nix
];

View file

@ -2,7 +2,6 @@
{
imports = [
./hardware-configuration.nix
private.nixosModules.wireless
];
system.stateVersion = "21.11";

View file

@ -1,10 +1,12 @@
{ config, lib, ... }:
{ config, lib, private, ... }:
with lib;
with lib.hlissner;
let
cfg = config.modules.hardware.wireless;
in
{
imports = [ private.nixosModules.wireless ];
options.modules.hardware.wireless = {
enable = mkBoolOpt false;
bluetooth = {