This commit is contained in:
Your Name 2024-02-17 21:00:43 +03:00
parent 5dc448e814
commit 2cbdf0c8b2
3 changed files with 12 additions and 3 deletions

View file

@ -9,6 +9,11 @@
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; 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; boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "dlaptop"; # Define your hostname. networking.hostName = "dlaptop"; # Define your hostname.

View file

@ -10,6 +10,7 @@
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.initrd.extraFiles."slim7-ssdt".source = "./slim7-ssdt";
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.kernelPackages = unstable.linuxPackages_zen; boot.kernelPackages = unstable.linuxPackages_zen;
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
@ -26,7 +27,10 @@
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ ]; swapDevices = [ {
device = "/var/lib/swapfile";
size = 32*1024;
} ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (the default) this is the recommended approach. When using systemd-networkd it's

BIN
slim7-ssdt Normal file

Binary file not shown.