mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
25 lines
562 B
Nix
25 lines
562 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.aviallon.hardware.amd;
|
|
devCfg = config.aviallon.developer;
|
|
generalCfg = config.aviallon.general;
|
|
myMesa = if generalCfg.unsafeOptimizations then pkgs.mesaOptimized else pkgs.mesa;
|
|
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 = {};
|
|
};
|
|
}
|