Begin the move to the import all, activate by config model

This commit is contained in:
Jimbo 2024-11-04 22:41:38 -05:00
parent 7397b614de
commit 07cb2d67a2
97 changed files with 776 additions and 633 deletions

View file

@ -1,12 +1,22 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
networking = {
wireless.iwd.enable = true;
enableB43Firmware = true;
options.system.wireless = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable Wifi with iwd";
};
};
environment = {
persistence."/persist".directories = [ "/var/lib/iwd/" ];
systemPackages = with pkgs; [ unstable.impala ];
config = lib.mkIf config.system.wireless.enable {
networking = {
wireless.iwd.enable = true;
enableB43Firmware = true;
};
environment = {
systemPackages = with pkgs; [ unstable.impala ];
persistence."/persist".directories = [ "/var/lib/iwd/" ];
};
};
}