mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
30 lines
480 B
Nix
30 lines
480 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.aviallon.hardware.amd;
|
|
devCfg = config.aviallon.developer;
|
|
generalCfg = config.aviallon.general;
|
|
in
|
|
{
|
|
config = mkIf (cfg.enable && cfg.kernelDriver == "radeon") {
|
|
boot.initrd.kernelModules = [ "radeon" ];
|
|
|
|
aviallon.boot.cmdline = {
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
];
|
|
|
|
services.xserver.videoDrivers = [
|
|
"modesetting"
|
|
];
|
|
|
|
environment.variables = { };
|
|
};
|
|
}
|