diff --git a/configuration.nix b/configuration.nix index 11c246a..0900fab 100644 --- a/configuration.nix +++ b/configuration.nix @@ -9,6 +9,11 @@ # Bootloader. boot.loader.systemd-boot.enable = true; + boot.loader.systemd-boot.extraInstallCommands = '' + patch_slim7_ssdt=$( + cp -fq ./slim7-ssdt /boot/EFI/nixos/slim7-ssdt + ) + ''; boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "dlaptop"; # Define your hostname. diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 1df72b5..97a4b6a 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -10,10 +10,11 @@ boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; + boot.initrd.extraFiles."slim7-ssdt".source = "./slim7-ssdt"; boot.kernelModules = [ "kvm-amd" ]; boot.kernelPackages = unstable.linuxPackages_zen; boot.extraModulePackages = [ ]; - + fileSystems."/" = { device = "/dev/disk/by-uuid/6b2d5c46-92de-42d0-a272-16b7ef7f30af"; fsType = "ext4"; @@ -26,8 +27,11 @@ fsType = "vfat"; }; - swapDevices = [ ]; - + swapDevices = [ { + device = "/var/lib/swapfile"; + size = 32*1024; + } ]; + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction diff --git a/slim7-ssdt b/slim7-ssdt new file mode 100644 index 0000000..fb3020c Binary files /dev/null and b/slim7-ssdt differ