26 lines
771 B
Nix
26 lines
771 B
Nix
{ config, lib, pkgs, modulesPath, inputs, ... }:
|
|
{
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
imports =
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
./disko.nix
|
|
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
swapDevices = [
|
|
{
|
|
device = "/dev/disk/by-label/SWAP";
|
|
}
|
|
];
|
|
zramSwap.enable = true;
|
|
}
|