2021-02-07 02:38:11 +03:00
|
|
|
{ lib, pkgs, config, ... }: {
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = lib.mkIf (pkgs.system == "x86_64-linux") true;
|
|
|
|
# efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
|
2021-06-16 05:30:04 +03:00
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
2021-02-07 02:38:11 +03:00
|
|
|
|
|
|
|
supportedFilesystems = [ "ntfs" ];
|
|
|
|
|
|
|
|
extraModprobeConfig = lib.mkIf (config.device == "AMD-Workstation") ''
|
|
|
|
options snd slots=snd_virtuoso,snd_usb_audio
|
|
|
|
'';
|
|
|
|
|
|
|
|
consoleLogLevel = 3;
|
|
|
|
kernel.sysctl = {
|
|
|
|
"vm.swappiness" = if config.deviceSpecific.isSSD then 1 else 10;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|