Rename some common options to hardware

This commit is contained in:
NullBite 2024-02-08 15:08:16 +01:00
parent e99905a096
commit 1dedbbb489
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
4 changed files with 9 additions and 9 deletions

View File

@ -1,9 +1,9 @@
{ config, lib, pkgs, ...}:
let
cfg = config.nixfiles.common.bluetooth;
cfg = config.nixfiles.hardware.bluetooth;
in
{
options.nixfiles.common.bluetooth = {
options.nixfiles.hardware.bluetooth = {
enable = lib.mkEnableOption "Bluetooth";
};

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ...}:
let
cfg = config.nixfiles.common.nvidia;
cfg = config.nixfiles.hardware.nvidia;
in
{
# imports = [
@ -8,13 +8,13 @@ in
# ];
# Load nvidia driver for Xorg and Wayland
options.nixfiles.common.nvidia = {
options.nixfiles.hardware.nvidia = {
modesetting.enable = lib.mkEnableOption "NVIDIA configuration with modesetting";
};
config = lib.mkIf cfg.modesetting.enable {
services.xserver.videoDrivers = ["nvidia"];
nixfiles.common.opengl.enable = true;
nixfiles.hardware.opengl.enable = true;
hardware.nvidia = {

View File

@ -1,9 +1,9 @@
{ config, lib, pkgs, ...}:
let
cfg = config.nixfiles.common.opengl;
cfg = config.nixfiles.hardware.opengl;
in
{
options.nixfiles.common.opengl.enable = lib.mkEnableOption "OpenGL configuration";
options.nixfiles.hardware.opengl.enable = lib.mkEnableOption "OpenGL configuration";
config = lib.mkIf cfg.enable {
# Enable OpenGL
hardware.opengl = {

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ...}:
let
cfg = config.nixfiles.common.sound;
cfg = config.nixfiles.hardware.sound;
inherit (lib) mkEnableOption mkIf mkDefault;
in
{
@ -8,7 +8,7 @@ in
# sound.enable = true;
# hardware.pulseaudio.enable = true;
options.nixfiles.common.sound = {
options.nixfiles.hardware.sound = {
enable = mkEnableOption "sound configuration";
};