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
This commit is contained in:
Aaron Bieber 2024-05-29 21:09:40 -06:00
parent b96c43de87
commit 2d0d9bb532
No known key found for this signature in database
2 changed files with 26 additions and 12 deletions

View File

@ -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";
};

View File

@ -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;
};
}