somehow -still- forgot the hardware config ._.
This commit is contained in:
parent
b9327a9e84
commit
2b1fb15b6f
1 changed files with 9 additions and 55 deletions
|
|
@ -4,69 +4,23 @@
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports =
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
|
||||||
kernelModules = [
|
boot.initrd.kernelModules = [ ];
|
||||||
"kvm-intel"
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
];
|
boot.extraModulePackages = [ ];
|
||||||
extraModulePackages = [
|
|
||||||
];
|
|
||||||
initrd = {
|
|
||||||
availableKernelModules = [
|
|
||||||
"xhci_pci"
|
|
||||||
"ahci"
|
|
||||||
"nvme"
|
|
||||||
"usb_storage"
|
|
||||||
"sd_mod"
|
|
||||||
# "rtsc_pci_sdmmc"
|
|
||||||
];
|
|
||||||
kernelModules = [
|
|
||||||
];
|
|
||||||
secrets = {
|
|
||||||
# "crypto_keyfile.bin" = null;
|
|
||||||
};
|
|
||||||
luks = {
|
|
||||||
devices."luks-c2b8b1cb-6d01-4e7c-a659-1fcf01618c41" = {
|
|
||||||
device = "/dev/disk/by-uuid/c2b8b1cb-6d01-4e7c-a659-1fcf01618c41";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/0c83c280-0f65-4d0b-9451-58052ea168f2";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
# boot.initrd.luks.devices."luks-c2b8b1cb-6d01-4e7c-a659-1fcf01618c41".device = "/dev/disk/by-uuid/c2b8b1cb-6d01-4e7c-a659-1fcf01618c41";
|
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/4E83-1199";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices =[
|
|
||||||
{ device = "/dev/disk/by-uuid/81efa66d-8a22-49ad-9f2e-abb3e10061da"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
# 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
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking = {
|
networking.useDHCP = lib.mkDefault true;
|
||||||
useDHCP = lib.mkDefault true;
|
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
||||||
interfaces = {
|
# networking.interfaces.wlp58s0.useDHCP = lib.mkDefault true;
|
||||||
enp0s31f6.useDHCP = lib.mkDefault true;
|
|
||||||
wlp58s0.useDHCP = lib.mkDefault true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue