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:
parent
b96c43de87
commit
2d0d9bb532
@ -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,20 +46,22 @@ in
|
||||
NIX_SSL_CERT_FILE = "/etc/ssl/certs/ca-bundle.crt";
|
||||
};
|
||||
|
||||
pipewire.enable = true;
|
||||
|
||||
services = {
|
||||
openssh.settings.X11Forwarding = true;
|
||||
fwupd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
xserver = {
|
||||
libinput.enable = true;
|
||||
xserver = {
|
||||
enable = true;
|
||||
desktopManager = {
|
||||
kodi = {
|
||||
enable = true;
|
||||
package = myKodi;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
displayManager = {
|
||||
autoLogin = {
|
||||
@ -66,8 +69,6 @@ in
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
videoDrivers = [ "intel" ];
|
||||
};
|
||||
};
|
||||
|
||||
users = {
|
||||
@ -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";
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user