Rename some common options to hardware
This commit is contained in:
parent
e99905a096
commit
1dedbbb489
@ -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";
|
||||
};
|
||||
|
||||
|
@ -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 = {
|
||||
|
||||
|
@ -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 = {
|
||||
|
@ -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";
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user