2024-09-02 19:07:38 -04:00
|
|
|
# This file was initially made by 'nixos-generate-config', try not to edit too much
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }: {
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
# Set all boot options
|
|
|
|
boot = {
|
|
|
|
# Set a kernel version and load/blacklist drivers
|
|
|
|
blacklistedKernelModules = [
|
|
|
|
"pcspkr"
|
|
|
|
];
|
|
|
|
kernel.sysctl."vm.max_map_count" = 2147483642;
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [
|
|
|
|
"nvme"
|
|
|
|
"xhci_pci"
|
|
|
|
"usbhid"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
2024-09-02 19:39:58 -04:00
|
|
|
"sdhci_pci"
|
2024-09-02 19:07:38 -04:00
|
|
|
];
|
|
|
|
kernelModules = [
|
|
|
|
"kvm-amd"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Manage supported filesystems
|
|
|
|
supportedFilesystems = {
|
|
|
|
ntfs = true;
|
|
|
|
zfs = lib.mkForce false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Mount everything as necessary
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2024-09-03 11:44:46 -04:00
|
|
|
device = "/dev/disk/by-uuid/182b2841-88a8-4845-9a29-0c1cdc01102d";
|
2024-09-02 19:39:58 -04:00
|
|
|
fsType = "btrfs";
|
2024-09-02 19:07:38 -04:00
|
|
|
};
|
|
|
|
"/boot" = {
|
2024-09-03 11:44:46 -04:00
|
|
|
device = "/dev/disk/by-uuid/10A5-1022";
|
2024-09-02 19:07:38 -04:00
|
|
|
fsType = "vfat";
|
2024-09-02 19:39:58 -04:00
|
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
2024-09-02 19:07:38 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Set the swap partition
|
|
|
|
swapDevices = [
|
2024-09-03 11:44:46 -04:00
|
|
|
{ device = "/dev/disk/by-uuid/552f8899-a255-4e2b-a22c-e361ceaa527a"; }
|
2024-09-02 19:07:38 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
# Enables DHCP on each ethernet and wireless interface.
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|