72 lines
2 KiB
Nix
72 lines
2 KiB
Nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||
# and may be overwritten by future invocations. Please make changes
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
||
{
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot = {
|
||
kernelModules = [
|
||
"kvm-intel"
|
||
];
|
||
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
|
||
# (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
|
||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||
networking = {
|
||
useDHCP = lib.mkDefault true;
|
||
interfaces = {
|
||
enp0s31f6.useDHCP = lib.mkDefault true;
|
||
wlp58s0.useDHCP = lib.mkDefault true;
|
||
};
|
||
};
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
|
||
}
|