Switch to PipeWire

This commit is contained in:
Filippo Berto 2021-10-18 16:00:46 +02:00
parent aec85035d3
commit 1e08ac83f5
2 changed files with 25 additions and 24 deletions

View file

@ -87,18 +87,18 @@
# hardware.pulseaudio.enable = true; # hardware.pulseaudio.enable = true;
# PIPEWIRE # PIPEWIRE
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = false;
# security.rtkit.enable = true; security.rtkit.enable = true;
# services.pipewire = { services.pipewire = {
# enable = true; enable = true;
# pulse.enable = true; pulse.enable = true;
# jack.enable = true; jack.enable = true;
# alsa = { alsa = {
# enable = true; enable = true;
# support32Bit = true; support32Bit = true;
# }; };
# # media-session.enable = true; # media-session.enable = true;
# }; };
environment.sessionVariables.LD_LIBRARY_PATH = lib.mkForce "${config.services.pipewire.package.jack}/lib"; # Temporary fix for WebKitGTK environment.sessionVariables.LD_LIBRARY_PATH = lib.mkForce "${config.services.pipewire.package.jack}/lib"; # Temporary fix for WebKitGTK
# # Tablet # # Tablet
@ -156,16 +156,17 @@
services.thermald.enable = true; services.thermald.enable = true;
services.snapper = { services.snapper = {
configs = let configs =
bertofExtraConfig = '' let
ALLOW_USERS="bertof" bertofExtraConfig = ''
TIMELINE_CREATE=yes ALLOW_USERS="bertof"
TIMELINE_CLEANUP=yes TIMELINE_CREATE=yes
''; TIMELINE_CLEANUP=yes
common = { '';
extraConfig = bertofExtraConfig; common = {
}; extraConfig = bertofExtraConfig;
in };
in
{ {
bertof_home = common // { bertof_home = common // {
subvolume = "/home/bertof"; subvolume = "/home/bertof";

View file

@ -5,11 +5,11 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ imports = builtins.trace "Intel laptop configuration" [
./base.nix ./base.nix
]; ];
boot.initrd.kernelModules = ["i915"]; boot.initrd.kernelModules = [ "i915" ];
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;