Rename some common options to hardware
This commit is contained in:
parent
e99905a096
commit
1dedbbb489
@ -1,9 +1,9 @@
|
|||||||
{ config, lib, pkgs, ...}:
|
{ config, lib, pkgs, ...}:
|
||||||
let
|
let
|
||||||
cfg = config.nixfiles.common.bluetooth;
|
cfg = config.nixfiles.hardware.bluetooth;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixfiles.common.bluetooth = {
|
options.nixfiles.hardware.bluetooth = {
|
||||||
enable = lib.mkEnableOption "Bluetooth";
|
enable = lib.mkEnableOption "Bluetooth";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ...}:
|
{ config, lib, pkgs, ...}:
|
||||||
let
|
let
|
||||||
cfg = config.nixfiles.common.nvidia;
|
cfg = config.nixfiles.hardware.nvidia;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# imports = [
|
# imports = [
|
||||||
@ -8,13 +8,13 @@ in
|
|||||||
# ];
|
# ];
|
||||||
|
|
||||||
# Load nvidia driver for Xorg and Wayland
|
# Load nvidia driver for Xorg and Wayland
|
||||||
options.nixfiles.common.nvidia = {
|
options.nixfiles.hardware.nvidia = {
|
||||||
modesetting.enable = lib.mkEnableOption "NVIDIA configuration with modesetting";
|
modesetting.enable = lib.mkEnableOption "NVIDIA configuration with modesetting";
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.modesetting.enable {
|
config = lib.mkIf cfg.modesetting.enable {
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
nixfiles.common.opengl.enable = true;
|
nixfiles.hardware.opengl.enable = true;
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{ config, lib, pkgs, ...}:
|
{ config, lib, pkgs, ...}:
|
||||||
let
|
let
|
||||||
cfg = config.nixfiles.common.opengl;
|
cfg = config.nixfiles.hardware.opengl;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixfiles.common.opengl.enable = lib.mkEnableOption "OpenGL configuration";
|
options.nixfiles.hardware.opengl.enable = lib.mkEnableOption "OpenGL configuration";
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
# Enable OpenGL
|
# Enable OpenGL
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ...}:
|
{ config, lib, pkgs, ...}:
|
||||||
let
|
let
|
||||||
cfg = config.nixfiles.common.sound;
|
cfg = config.nixfiles.hardware.sound;
|
||||||
inherit (lib) mkEnableOption mkIf mkDefault;
|
inherit (lib) mkEnableOption mkIf mkDefault;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -8,7 +8,7 @@ in
|
|||||||
# sound.enable = true;
|
# sound.enable = true;
|
||||||
# hardware.pulseaudio.enable = true;
|
# hardware.pulseaudio.enable = true;
|
||||||
|
|
||||||
options.nixfiles.common.sound = {
|
options.nixfiles.hardware.sound = {
|
||||||
enable = mkEnableOption "sound configuration";
|
enable = mkEnableOption "sound configuration";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user