Tweaks re: apple-silicon limitations and compilation failures

This commit is contained in:
Natsu Kagami 2023-04-04 20:28:28 +02:00
parent 530802c0ee
commit f21f4ed2d1
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
6 changed files with 16 additions and 23 deletions

View file

@ -76,7 +76,7 @@ in
config = mkIf cfg.enable {
## Boot Configuration
# Set kernel version to latest
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelPackages = mkDefault pkgs.linuxPackages_latest;
# Use the systemd-boot EFI boot loader.
boot = {
plymouth.enable = true;
@ -85,7 +85,7 @@ in
loader.efi.canTouchEfiVariables = true;
supportedFilesystems = [ "ntfs" ];
};
boot.initrd.systemd.enable = true;
boot.initrd.systemd.enable = builtins.length (builtins.attrNames (cfg.luksDevices)) > 0;
# LUKS devices
boot.initrd.luks.devices = builtins.mapAttrs
(name: path: {