overhaul repo structure
This commit is contained in:
parent
47cd47b4f2
commit
d1712461f6
5 changed files with 85 additions and 0 deletions
15
modules/system/hardware/bluetooth.nix
Normal file
15
modules/system/hardware/bluetooth.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.bluetooth = {
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = false;
|
||||
input.General.ClassicBondedOnly = false;
|
||||
settings = {
|
||||
General = {
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
18
modules/system/hardware/nvidia.nix
Normal file
18
modules/system/hardware/nvidia.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ ... }: {
|
||||
flake.nixosModules.nvidia = { config, ... }: {
|
||||
# Enable OpenGL
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue