nixos-config/machines/cray/hardware-configuration.nix

47 lines
1.4 KiB
Nix
Raw Normal View History

2022-01-24 21:40:22 +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, ... }:
{
2022-02-14 20:50:52 +00:00
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2022-01-24 21:40:22 +00:00
2022-02-14 20:50:52 +00:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
2022-01-24 21:40:22 +00:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2022-02-14 20:50:52 +00:00
fileSystems."/" =
{ device = "/dev/disk/by-uuid/60e06bf9-f4c4-4555-879b-23ade6599704";
fsType = "ext4";
};
2022-01-24 21:40:22 +00:00
2022-02-14 20:50:52 +00:00
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/2e85528d-0086-4835-9fc7-0e7a847d90bd";
2022-01-24 21:40:22 +00:00
2022-02-06 13:21:48 +00:00
fileSystems."/mnt/pool" = {
2022-02-06 23:01:27 +00:00
device = "//BART/Pool/";
fsType = "cifs";
options =
let
2022-02-06 13:21:48 +00:00
# this line prevents hanging on network split
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
2022-02-06 23:01:27 +00:00
in
[ "${automount_opts},credentials=/etc/nixos/smb-secrets" ];
2022-02-06 13:21:48 +00:00
};
2022-02-14 20:50:52 +00:00
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/274B-0F7C";
fsType = "vfat";
};
swapDevices = [{
device = "/dev/disk/by-partuuid/c5586d55-aca1-4771-9695-1232ba83d3f6";
randomEncryption = true;
2022-02-06 13:21:48 +00:00
2022-02-14 20:50:52 +00:00
}];
2022-01-24 21:40:22 +00:00
2022-02-14 20:50:52 +00:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-01-24 21:40:22 +00:00
}