From a694f58c6181f61d3e24520be5adbc4ba416dff1 Mon Sep 17 00:00:00 2001 From: Mirko Lenz Date: Sun, 9 Feb 2025 10:54:44 +0100 Subject: [PATCH] refactor: rename custom.cuda to custom.nvidia --- hosts/macbook-11-3/default.nix | 2 +- hosts/macbook-9-1/default.nix | 2 +- system/linux/options/{cuda.nix => nvidia.nix} | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename system/linux/options/{cuda.nix => nvidia.nix} (88%) diff --git a/hosts/macbook-11-3/default.nix b/hosts/macbook-11-3/default.nix index 422584c..3656d95 100644 --- a/hosts/macbook-11-3/default.nix +++ b/hosts/macbook-11-3/default.nix @@ -20,7 +20,7 @@ }; }; - custom.cuda = { + custom.nvidia = { enable = false; driver = "legacy_470"; xserverDriver = "nvidiaLegacy470"; diff --git a/hosts/macbook-9-1/default.nix b/hosts/macbook-9-1/default.nix index bb7dedc..0fc8473 100644 --- a/hosts/macbook-9-1/default.nix +++ b/hosts/macbook-9-1/default.nix @@ -17,7 +17,7 @@ }; }; - custom.cuda = { + custom.nvidia = { enable = false; driver = "legacy_470"; xserverDriver = "nvidiaLegacy470"; diff --git a/system/linux/options/cuda.nix b/system/linux/options/nvidia.nix similarity index 88% rename from system/linux/options/cuda.nix rename to system/linux/options/nvidia.nix index af0aa6e..9f3746d 100644 --- a/system/linux/options/cuda.nix +++ b/system/linux/options/nvidia.nix @@ -1,10 +1,10 @@ { config, lib, ... }: let - cfg = config.custom.cuda; + cfg = config.custom.nvidia; in { - options.custom.cuda = { - enable = lib.mkEnableOption "CUDA"; + options.custom.nvidia = { + enable = lib.mkEnableOption "NVIDIA"; driver = lib.mkOption { type = lib.types.str; default = "stable";