wireless: use private wireless module automatically
This commit is contained in:
parent
e83f6ba13a
commit
97bf51e81a
5 changed files with 3 additions and 8 deletions
|
@ -1,7 +1,5 @@
|
||||||
{ pkgs, lib, private, ... }: {
|
{ pkgs, lib, private, ... }: {
|
||||||
imports = lib.lists.flatten [
|
imports = lib.lists.flatten [
|
||||||
private.nixosModules.wireless
|
|
||||||
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./filesystems.nix
|
./filesystems.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{ pkgs, lib, private, ... }: {
|
{ pkgs, lib, private, ... }: {
|
||||||
imports = lib.lists.flatten [
|
imports = lib.lists.flatten [
|
||||||
private.nixosModules.wireless
|
|
||||||
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./filesystems.nix
|
./filesystems.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{ lib, private, ... }:
|
{ lib, private, ... }:
|
||||||
{
|
{
|
||||||
imports = lib.lists.flatten [
|
imports = lib.lists.flatten [
|
||||||
private.nixosModules.wireless
|
|
||||||
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
private.nixosModules.wireless
|
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "21.11";
|
system.stateVersion = "21.11";
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, private, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.hlissner;
|
with lib.hlissner;
|
||||||
let
|
let
|
||||||
cfg = config.modules.hardware.wireless;
|
cfg = config.modules.hardware.wireless;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [ private.nixosModules.wireless ];
|
||||||
|
|
||||||
options.modules.hardware.wireless = {
|
options.modules.hardware.wireless = {
|
||||||
enable = mkBoolOpt false;
|
enable = mkBoolOpt false;
|
||||||
bluetooth = {
|
bluetooth = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue