diff options
| author | seth <[email protected]> | 2023-04-17 12:00:55 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-17 12:01:21 -0400 |
| commit | 92ca826539092f33c8e19a19c7a9ea0def2aece0 (patch) | |
| tree | c6ff98c3f645f189b559bc1a69904fec217a946c /modules/hardware/default.nix | |
| parent | 98921a299be9f22bde9204e1fd05d0ea0fb0c6ed (diff) | |
move most configurations to modules
Diffstat (limited to 'modules/hardware/default.nix')
| -rw-r--r-- | modules/hardware/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/hardware/default.nix b/modules/hardware/default.nix new file mode 100644 index 0000000..00f3169 --- /dev/null +++ b/modules/hardware/default.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + ... +}: let + cfg = config.myHardware; + inherit (lib) mkEnableOption mkIf; +in { + options.myHardware.enable = mkEnableOption "hardware module"; + + imports = [ + ./nvidia.nix + ]; + + config = mkIf cfg.enable { + hardware.enableAllFirmware = true; + }; +} |
