mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +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 = {
|
||||||
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;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -29,7 +33,7 @@ in {
|
||||||
enableRedistributableFirmware = true;
|
enableRedistributableFirmware = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.kernelModules=[ "amdgpu" ];
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
amdvlk
|
amdvlk
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue