feat: conform with new nix namings

This commit is contained in:
Ahwx 2025-04-08 20:11:16 +02:00
parent 7744c92905
commit 5139091ab9
3 changed files with 29 additions and 19 deletions

View file

@ -1,11 +1,13 @@
{ ... }: { ... }:
{ {
hardware.pulseaudio.enable = false; services = {
services.pipewire = { pulseaudio.enable = false;
pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
# lowLatency.enable = true; # lowLatency.enable = true;
}; };
};
} }

View file

@ -1,8 +1,14 @@
{ lib, pkgs, config, ... }: {
lib,
pkgs,
config,
...
}:
with lib; with lib;
let let
cfg = config.liv.amdgpu; cfg = config.liv.amdgpu;
in { in
{
options.liv.amdgpu = { options.liv.amdgpu = {
enable = mkEnableOption "Enable amdgpu drivers"; enable = mkEnableOption "Enable amdgpu drivers";
}; };
@ -11,8 +17,6 @@ in {
hardware = { hardware = {
graphics = { graphics = {
enable = true; enable = true;
};
opengl = {
extraPackages = with pkgs; [ extraPackages = with pkgs; [
mesa mesa
libva libva

View file

@ -1,19 +1,23 @@
{ lib, pkgs, config, ... }: {
lib,
pkgs,
config,
...
}:
with lib; with lib;
let let
cfg = config.liv.nvidia; cfg = config.liv.nvidia;
in { in
{
options.liv.nvidia = { options.liv.nvidia = {
enable = mkEnableOption "Enable NVIDIA drivers"; enable = mkEnableOption "Enable NVIDIA drivers";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
hardware = { hardware = {
enableRedistributableFirmware = true;
graphics = { graphics = {
enable = true; enable = true;
};
enableRedistributableFirmware = true;
opengl = {
extraPackages = with pkgs; [ extraPackages = with pkgs; [
# amdvlk # amdvlk
]; ];