Enable bluetooth suport on work-laptop and fallback to older kernel to fix Intel's mess
This commit is contained in:
parent
e59109027b
commit
5b85387567
2 changed files with 18 additions and 4 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
zsh-syntax-highlighting
|
zsh-syntax-highlighting
|
||||||
ranger
|
ranger
|
||||||
|
linuxPackages.perf
|
||||||
];
|
];
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -82,4 +83,4 @@
|
||||||
};
|
};
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@
|
||||||
../../configs/user.nix
|
../../configs/user.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Use older kernel thanks to Intel
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_4_19;
|
||||||
|
boot.kernelParams = [ "intel_idle.max_cstate=1" ];
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
|
@ -31,10 +34,20 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
hardware.bluetooth = {
|
||||||
services.openssh.enable = true;
|
enable = true;
|
||||||
services.openssh.permitRootLogin = "yes";
|
# Enable A2DP Sink
|
||||||
|
extraConfig = "
|
||||||
|
[General]
|
||||||
|
Enable=Source,Sink,Media,Socket
|
||||||
|
";
|
||||||
|
};
|
||||||
|
hardware.pulseaudio = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# Use full build to have Bluetooth support
|
||||||
|
package = pkgs.pulseaudioFull;
|
||||||
|
};
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
|
|
||||||
home-manager.users.froidmpa = {pkgs, config, ...}: {
|
home-manager.users.froidmpa = {pkgs, config, ...}: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue