2024-08-22 23:27:34 -04:00
|
|
|
# This file was generated by 'nixos-generate-config', try not to modify too much
|
2024-07-30 08:51:17 -04:00
|
|
|
{
|
2024-08-22 23:27:34 -04:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}: {
|
2024-07-30 08:51:17 -04:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
# Load kernel modules on boot
|
|
|
|
boot = {
|
|
|
|
initrd = {
|
2024-08-22 23:27:34 -04:00
|
|
|
availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
|
|
|
kernelModules = [];
|
2024-07-30 08:51:17 -04:00
|
|
|
};
|
2024-08-22 23:27:34 -04:00
|
|
|
kernelModules = ["kvm-amd"];
|
|
|
|
extraModulePackages = [];
|
2024-07-30 08:51:17 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
# Mount everything as necessary
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-uuid/f0786b07-8303-416f-87ff-276bfd696387";
|
|
|
|
fsType = "bcachefs";
|
|
|
|
};
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/EF6D-9009";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
"/etc/libvirt" = {
|
|
|
|
device = "/dev/disk/by-label/Qemu";
|
2024-08-22 23:27:34 -04:00
|
|
|
options = ["nosuid" "nodev" "nofail"];
|
2024-07-30 08:51:17 -04:00
|
|
|
};
|
|
|
|
"/var/lib/libvirt" = {
|
2024-08-22 23:27:34 -04:00
|
|
|
depends = ["/etc/libvirt"];
|
2024-07-30 08:51:17 -04:00
|
|
|
device = "/etc/libvirt/varlibvirt";
|
2024-08-22 23:27:34 -04:00
|
|
|
options = ["bind" "rw"];
|
2024-07-30 08:51:17 -04:00
|
|
|
};
|
|
|
|
"/mnt/Linux1" = {
|
|
|
|
device = "/dev/disk/by-label/Linux1";
|
2024-08-22 23:27:34 -04:00
|
|
|
options = ["nosuid" "nodev" "nofail" "x-gvfs-show"];
|
2024-07-30 08:51:17 -04:00
|
|
|
};
|
|
|
|
"/mnt/Linux2" = {
|
|
|
|
device = "/dev/disk/by-label/Linux2";
|
2024-08-22 23:27:34 -04:00
|
|
|
options = ["nosuid" "nodev" "nofail" "x-gvfs-show"];
|
2024-07-30 08:51:17 -04:00
|
|
|
};
|
|
|
|
"/mnt/Windows1" = {
|
|
|
|
device = "/dev/disk/by-label/Windows1";
|
2024-08-22 23:27:34 -04:00
|
|
|
options = ["nosuid" "nodev" "noauto"];
|
2024-07-30 08:51:17 -04:00
|
|
|
};
|
|
|
|
"/mnt/Windows2" = {
|
|
|
|
device = "/dev/disk/by-label/Windows2";
|
2024-08-22 23:27:34 -04:00
|
|
|
options = ["nosuid" "nodev" "noauto"];
|
2024-07-30 08:51:17 -04:00
|
|
|
};
|
|
|
|
"/home/jimbo/JimboNFS" = {
|
|
|
|
device = "server:/export/JimboNFS";
|
2024-08-06 05:27:33 -04:00
|
|
|
fsType = "nfs4";
|
2024-08-22 23:27:34 -04:00
|
|
|
options = ["x-systemd.automount" "_netdev" "nofail" "noauto"];
|
2024-07-30 08:51:17 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Set the swap partition
|
|
|
|
swapDevices = [
|
2024-08-22 23:27:34 -04:00
|
|
|
{device = "/dev/disk/by-uuid/2e4c5120-716d-4cdc-84a0-c9e6391760db";}
|
2024-07-30 08:51:17 -04:00
|
|
|
];
|
|
|
|
|
2024-08-22 23:27:34 -04:00
|
|
|
# Enables DHCP on each ethernet and wireless interface.
|
2024-07-30 08:51:17 -04:00
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
# networking.interfaces.enp42s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|