diff --git a/rsync.sh b/apply.sh similarity index 100% rename from rsync.sh rename to apply.sh diff --git a/machine/thinkpad/configuration.nix b/machine/thinkpad/configuration.nix index 6500ff3..060b442 100644 --- a/machine/thinkpad/configuration.nix +++ b/machine/thinkpad/configuration.nix @@ -121,31 +121,24 @@ in vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; }; - # Configure keymap in X11 - # services.xserver.layout = "us"; - # services.xserver.xkbOptions = "eurosign:e"; - - fonts.fonts = with pkgs; [ - open-sans - roboto-mono - noto-fonts - noto-fonts-cjk - noto-fonts-emoji - liberation_ttf - fira-code - fira-code-symbols - mplus-outline-fonts - dina-font - proggyfonts - ]; - # Enable CUPS to print documents. services.printing.enable = true; services.printing.drivers = [ pkgs.brlaser ]; # Enable sound. sound.enable = true; - hardware.pulseaudio.enable = true; - hardware.pulseaudio.support32Bit = true; + hardware.pulseaudio = { + enable = true; + support32Bit = true; + daemon = { + config = { + avoid-resampling = "yes"; + }; + }; + configFile = pkgs.runCommand "default.pa" {} '' + sed 's/module-udev-detect$/module-udev-detect tsched=0/' \ + ${pkgs.pulseaudio}/etc/pulse/default.pa > $out + ''; + }; hardware.sane.enable = true; #thinkfan