feat(systemModules:host): add common hardware configuration module
This commit is contained in:
parent
4a8095f271
commit
2fe6c44941
1 changed files with 15 additions and 0 deletions
15
system/modules/host/hardware/common/default.nix
Normal file
15
system/modules/host/hardware/common/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
host = config.systemModules.host;
|
||||
in
|
||||
|
||||
{
|
||||
config = mkIf (host.type != "phone") {
|
||||
hardware = {
|
||||
enableRedistributableFirmware = true;
|
||||
enableAllFirmware = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue