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,19 +1,23 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.liv.nvidia;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.liv.nvidia = {
|
||||
enable = mkEnableOption "Enable NVIDIA drivers";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hardware = {
|
||||
enableRedistributableFirmware = true;
|
||||
graphics = {
|
||||
enable = true;
|
||||
};
|
||||
enableRedistributableFirmware = true;
|
||||
opengl = {
|
||||
extraPackages = with pkgs; [
|
||||
# amdvlk
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue