diff options
| author | seth <[email protected]> | 2023-11-06 14:35:58 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-06 14:35:58 -0500 |
| commit | 868263ab2effc0536489837bdba5183623e6507f (patch) | |
| tree | 57f9dfbf62494d673c4e9edad2501db608a166f9 /modules/nixos/hardware | |
| parent | 714634ec755cd97fb5bd95845899e10defbed09c (diff) | |
modules/nixos: remove hardware module
Diffstat (limited to 'modules/nixos/hardware')
| -rw-r--r-- | modules/nixos/hardware/default.nix | 8 | ||||
| -rw-r--r-- | modules/nixos/hardware/nvidia.nix | 19 | ||||
| -rw-r--r-- | modules/nixos/hardware/ssd.nix | 14 |
3 files changed, 0 insertions, 41 deletions
diff --git a/modules/nixos/hardware/default.nix b/modules/nixos/hardware/default.nix deleted file mode 100644 index b939953..0000000 --- a/modules/nixos/hardware/default.nix +++ /dev/null @@ -1,8 +0,0 @@ -{lib, ...}: { - imports = [ - ./ssd.nix - ./nvidia.nix - ]; - - hardware.enableAllFirmware = lib.mkDefault true; -} diff --git a/modules/nixos/hardware/nvidia.nix b/modules/nixos/hardware/nvidia.nix deleted file mode 100644 index fac9150..0000000 --- a/modules/nixos/hardware/nvidia.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ - config, - lib, - ... -}: let - cfg = config.hardware.nvidia; - inherit (lib) mkEnableOption mkIf; -in { - options.hardware.nvidia.enable = mkEnableOption "enable nvidia support"; - - config = mkIf cfg.enable { - hardware.nvidia = { - package = config.boot.kernelPackages.nvidiaPackages.stable; - modesetting.enable = true; - }; - - services.xserver.videoDrivers = ["nvidia"]; - }; -} diff --git a/modules/nixos/hardware/ssd.nix b/modules/nixos/hardware/ssd.nix deleted file mode 100644 index 7279a12..0000000 --- a/modules/nixos/hardware/ssd.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ - config, - lib, - ... -}: let - cfg = config.hardware.ssd; - inherit (lib) mkEnableOption mkIf; -in { - options.hardware.ssd.enable = mkEnableOption "ssd settings"; - - config = mkIf cfg.enable { - services.fstrim.enable = true; - }; -} |
