Pro audio + fixes

This commit is contained in:
Filippo Berto 2021-07-19 07:57:47 +02:00
parent 1f49192ab3
commit 6bbfc7cdc0
11 changed files with 181 additions and 37 deletions

View file

@ -1,13 +1,13 @@
{ pkgs, ... }: {
{ config, pkgs, lib, ... }: {
imports =
[
# Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix
./laptop.nix
./pentablet.nix
];
imports = [
# Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix
./laptop.nix
./pentablet.nix
./pro_audio.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
@ -81,17 +81,24 @@
services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
# services.pipewire = {
# enable = true;
# pulse.enable = true;
# jack.enable = true;
# alsa = {
# enable = true;
# support32Bit = true;
# };
# };
# PULSE
# sound.enable = true;
# hardware.pulseaudio.enable = true;
# PIPEWIRE
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
jack.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
# media-session.enable = true;
};
environment.sessionVariables.LD_LIBRARY_PATH = lib.mkForce "${config.services.pipewire.package.jack}/lib"; # Temporary fix for WebKitGTK
# # Tablet
# hardware.opentabletdriver = {
@ -216,7 +223,7 @@
services.clamav = { daemon.enable = true; updater.enable = true; };
# Virtualisation
virtualisation = { kvmgt.enable = true; libvirtd.enable = true; };
virtualisation = { kvmgt.enable = true; libvirtd.enable = true; podman.enable = true; };
# Allow completion for system packages
environment.pathsToLink = [ "/share/zsh" ];