mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: conform with new nix namings
This commit is contained in:
parent
7744c92905
commit
5139091ab9
3 changed files with 29 additions and 19 deletions
|
|
@ -1,8 +1,14 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.liv.amdgpu;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.liv.amdgpu = {
|
||||
enable = mkEnableOption "Enable amdgpu drivers";
|
||||
};
|
||||
|
|
@ -11,8 +17,6 @@ in {
|
|||
hardware = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
};
|
||||
opengl = {
|
||||
extraPackages = with pkgs; [
|
||||
mesa
|
||||
libva
|
||||
|
|
@ -28,8 +32,8 @@ in {
|
|||
};
|
||||
enableRedistributableFirmware = true;
|
||||
};
|
||||
|
||||
boot.initrd.kernelModules=[ "amdgpu" ];
|
||||
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
amdvlk
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue