os/hosts/harrison/hardware-configuration.nix

66 lines
1.6 KiB
Nix
Raw Normal View History

2022-04-25 21:27:33 +00:00
# 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.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "usb_storage" "usbhid" "sd_mod" "raid1" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices."cryptoroot" = {
device = "/dev/disk/by-uuid/e3a0394d-8bb5-4049-bf65-90d7202163cd";
keyFile = "/dev/disk/by-id/usb-SanDisk_Cruzer_Blade_04011806021722115743-0:0-part1";
2022-05-23 21:29:00 +00:00
fallbackToPassword = true;
bypassWorkqueues = true;
2022-04-25 21:27:33 +00:00
};
2022-05-23 21:29:00 +00:00
boot.loader.grub.mirroredBoots = [
{
devices = [ "/dev/disk/by-uuid/4B4A-B1B4" ];
2022-06-14 19:12:53 +00:00
path = "/boot";
2022-05-23 21:29:00 +00:00
}
{
devices = [ "/dev/disk/by-uuid/4B2C-385A" ];
path = "/boot2";
}
];
2022-04-25 21:27:33 +00:00
fileSystems = {
"/" =
{
device = "/dev/disk/by-uuid/4ad4db6d-543e-4cc5-a781-396e3b527a05";
fsType = "ext4";
};
2022-06-14 19:12:53 +00:00
"/boot" =
{
device = "/dev/disk/by-uuid/4B4A-B1B4";
fsType = "vfat";
};
"/boot2" =
{
device = "/dev/disk/by-uuid/4B2C-385A";
fsType = "vfat";
};
2022-04-25 21:27:33 +00:00
2022-06-14 19:12:53 +00:00
"/home" =
2022-04-25 21:27:33 +00:00
{
2022-06-14 19:12:53 +00:00
device = "/dev/mapper/vg0-home";
2022-04-25 21:27:33 +00:00
fsType = "ext4";
};
};
swapDevices =
2022-06-14 19:12:53 +00:00
[{ device = "/dev/mapper/vg0-swap"; }];
2022-04-25 21:27:33 +00:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}