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,11 +1,13 @@
|
|||
{ ... }:
|
||||
{
|
||||
hardware.pulseaudio.enable = false;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# lowLatency.enable = true;
|
||||
services = {
|
||||
pulseaudio.enable = false;
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# lowLatency.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -29,7 +33,7 @@ in {
|
|||
enableRedistributableFirmware = true;
|
||||
};
|
||||
|
||||
boot.initrd.kernelModules=[ "amdgpu" ];
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
amdvlk
|
||||
|
|
|
|||
|
|
@ -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