From 2d0d9bb53254a14fd58e83ce9bbabe4fff9fa118 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 29 May 2024 21:09:40 -0600 Subject: [PATCH] hosts/tv: fix audio - allow x11 forwarding in ssh so we can adjust the volume - set the dsp-driver to 3 so we use sof-firmware - enable user control of wifi - enable bt - use regular openssh so we have pam logins with dbus and what not --- hosts/tv/default.nix | 33 +++++++++++++++++++---------- hosts/tv/hardware-configuration.nix | 5 ++++- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/hosts/tv/default.nix b/hosts/tv/default.nix index 6febb1c..2d19934 100644 --- a/hosts/tv/default.nix +++ b/hosts/tv/default.nix @@ -10,9 +10,8 @@ let certifi infotagger invidious - jellycon jellyfin - requests + keymap somafm ]); in @@ -29,11 +28,13 @@ in }; kernelPackages = pkgs.linuxPackages_latest; + kernelParams = [ "snd-intel-dspcfg.dsp_driver=3" ]; }; networking = { hostName = "tv"; networkmanager.enable = true; + wireless.userControlled.enable = true; firewall = { enable = true; allowedTCPPorts = [ 22 ]; @@ -45,28 +46,28 @@ in NIX_SSL_CERT_FILE = "/etc/ssl/certs/ca-bundle.crt"; }; + pipewire.enable = true; + services = { + openssh.settings.X11Forwarding = true; fwupd = { enable = true; }; - + libinput.enable = true; xserver = { - libinput.enable = true; enable = true; desktopManager = { kodi = { enable = true; package = myKodi; }; - }; - displayManager = { - autoLogin = { - user = "tv"; - enable = true; - }; + }; + displayManager = { + autoLogin = { + user = "tv"; + enable = true; }; - videoDrivers = [ "intel" ]; }; }; @@ -80,6 +81,16 @@ in }; }; + environment.systemPackages = with pkgs; [ + pavucontrol + ]; + + hardware.firmware = with pkgs; [ + sof-firmware + ]; + + programs.ssh.package = pkgs.openssh; + system = { stateVersion = "22.11"; }; diff --git a/hosts/tv/hardware-configuration.nix b/hosts/tv/hardware-configuration.nix index 101f736..c0b6f66 100644 --- a/hosts/tv/hardware-configuration.nix +++ b/hosts/tv/hardware-configuration.nix @@ -41,5 +41,8 @@ # networking.interfaces.enp0s13f0u3.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware = { + cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + bluetooth.enable = true; + }; }