From 272120abf828685e0c9434efcd7388dbb40f7638 Mon Sep 17 00:00:00 2001 From: Felix Wittwer Date: Mon, 1 Feb 2021 10:01:17 +0100 Subject: [PATCH] Add pdf and audio tools, enable automatic bt mode switch --- entropy/nixos/configuration.nix | 14 ++++++++++++-- entropy/nixos/hardware-configuration.nix | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/entropy/nixos/configuration.nix b/entropy/nixos/configuration.nix index cd9c5ef..6d1f596 100644 --- a/entropy/nixos/configuration.nix +++ b/entropy/nixos/configuration.nix @@ -169,15 +169,17 @@ # switch to bluetooth automatically if they are connected extraConfig = " load-module module-switch-on-connect + load-module module-bluetooth-policy auto_switch=2 "; }; # enable bluetooth in general and add a simple tool for connecting devices hardware.bluetooth = { enable = true; + package = pkgs.bluezFull; # enable A2DP - config.General = { - Enable = "Source,Sink,Media,Socket"; + config = { + General = { Enable = "Source,Sink,Media,Socket"; }; }; }; services.blueman.enable = true; @@ -232,6 +234,8 @@ screen # automatic detection of display changes autorandr + # audio management + pavucontrol # password management pass pinentry-curses @@ -266,13 +270,19 @@ mupdf pdfpc zathura + # PDF manipulation + podofo + poppler_utils # LaTeX texlive.combined.scheme-full # the eternal pain continues libreoffice-fresh # video and media applications zoom-us + teams youtube-dl + mpv + streamlink ffmpeg-full # messenger tdesktop diff --git a/entropy/nixos/hardware-configuration.nix b/entropy/nixos/hardware-configuration.nix index f9bd71a..a26196e 100644 --- a/entropy/nixos/hardware-configuration.nix +++ b/entropy/nixos/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ];