feat: better modules aragement.
This commit is contained in:
parent
de11ee0676
commit
6e967a751f
49 changed files with 27 additions and 19 deletions
15
modules/linux/nixos/amdgpu.nix
Normal file
15
modules/linux/nixos/amdgpu.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.amdgpu.enable = lib.mkEnableOption "Load amdgpu modules at boot.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.amdgpu.enable {
|
||||
# Try to fix amdgpu
|
||||
boot.initrd.kernelModules = ["amdgpu"];
|
||||
services.xserver.videoDrivers = ["amdgpu"];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue