start making modules as actual modules, wip no battery left

This commit is contained in:
2025-02-09 04:57:29 +01:00
parent a2037ffb56
commit 5363e26357
6 changed files with 59 additions and 22 deletions

View File

@ -2,10 +2,19 @@
{ config, lib, inputs, pkgs, ... }:
{
hardware.graphics = {
enable = true;
enable32Bit = true;
options.mods.nvidia-graphics.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "enable my nvidia graphics settings";
};
config = lib.mkIf config.mods.nvidia-graphics.enable {
hardware.graphics = {
enable = true;
enable32Bit = true;
};
services.xserver.videoDrivers = ["nvidia"];
};
services.xserver.videoDrivers = ["nvidia"];
}