adapt for new hardware

This commit is contained in:
foosinn 2020-08-29 16:51:01 +02:00
parent 3a335817cb
commit f434cfa3e0
3 changed files with 18 additions and 31 deletions

View file

@ -4,21 +4,17 @@
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
imports = [
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
<nixos-hardware/common/cpu/amd>
<nixos-hardware/common/pc/ssd>
<nixos-hardware/common/pc/laptop>
];
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.initrd.luks.devices = {
swap = {
device = "/dev/disk/by-uuid/fe87a31c-7d0b-4073-98fc-fa825de77181";
allowDiscards = true;
};
};
fileSystems."/" =
{ device = "tank/root/nixos";
@ -31,14 +27,11 @@
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/0C2D-2799";
{ device = "/dev/disk/by-uuid/B048-FBC8";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/2ac33f61-0db5-4f94-8148-93f2166b2f29"; }
];
swapDevices = [ ];
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
nix.maxJobs = lib.mkDefault 8;
}