Reformat hardware configuration

This commit is contained in:
Simon Bruder 2020-12-06 10:53:40 +01:00
parent e499e9236d
commit b6bc87a6ee
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 37 additions and 34 deletions

View file

@ -1,30 +1,32 @@
{ config, lib, modulesPath, pkgs, ... }: { config, lib, modulesPath, pkgs, ... }:
{ {
imports = imports = [
[
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ]; boot = {
boot.initrd.kernelModules = [ "dm-snapshot" ]; kernelModules = [ "kvm-intel" ];
boot.kernelModules = [ "kvm-intel" ]; extraModulePackages = [ ];
boot.extraModulePackages = [ ]; initrd = {
availableKernelModules = [ "ahci" "ehci_pci" "rtsx_pci_sdmmc" "sd_mod" "usb_storage" "usbhid" "xhci_pci" ];
kernelModules = [ "dm-snapshot" ];
};
};
fileSystems."/" = fileSystems = {
{ "/" = {
device = "/dev/disk/by-uuid/8937d1ac-23cb-456f-9c16-e348acc66bb7"; device = "/dev/disk/by-uuid/8937d1ac-23cb-456f-9c16-e348acc66bb7";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = "/boot" = {
{
device = "/dev/disk/by-uuid/da2e90cc-1e0c-4691-8807-5d2f4858df6e"; device = "/dev/disk/by-uuid/da2e90cc-1e0c-4691-8807-5d2f4858df6e";
fsType = "ext2"; fsType = "ext2";
}; };
};
swapDevices = swapDevices = [
[
{ device = "/dev/disk/by-uuid/b9ad2d56-fee0-49df-98c1-00d93d991b9f"; } { device = "/dev/disk/by-uuid/b9ad2d56-fee0-49df-98c1-00d93d991b9f"; }
]; ];

View file

@ -1,33 +1,34 @@
# Do not modify this file! It was generated by nixos-generate-config { config, lib, modulesPath, pkgs, ... }:
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports = [
[
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "usb_storage" "usbhid" "sd_mod" ]; boot = {
boot.initrd.kernelModules = [ "dm-snapshot" ]; kernelModules = [ "kvm-intel" ];
boot.kernelModules = [ "kvm-intel" ]; extraModulePackages = [ ];
boot.extraModulePackages = [ ]; initrd = {
availableKernelModules = [ "ahci" "ehci_pci" "sd_mod" "usb_storage" "usbhid" "xhci_pci" ];
kernelModules = [ "dm-snapshot" ];
};
};
fileSystems."/" = fileSystems = {
{ "/" = {
device = "/dev/disk/by-uuid/024e31ab-aa98-4070-95be-7980043541ac"; device = "/dev/disk/by-uuid/024e31ab-aa98-4070-95be-7980043541ac";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = "/boot" = {
{
device = "/dev/disk/by-uuid/c5bde64b-c629-438d-a78b-c4341796dae9"; device = "/dev/disk/by-uuid/c5bde64b-c629-438d-a78b-c4341796dae9";
fsType = "ext2"; fsType = "ext2";
}; };
};
swapDevices = swapDevices = [
[{ device = "/dev/disk/by-uuid/78f5277f-a6e5-4297-99cd-d3ea5de5317e"; }]; { device = "/dev/disk/by-uuid/78f5277f-a6e5-4297-99cd-d3ea5de5317e"; }
];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
} }