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

43 lines
1.3 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-01-25 00:13:49 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2022-01-24 21:40:22 +00:00
2022-01-25 00:13:49 +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-01-25 00:13:49 +00:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/1d2ce540-2fce-4621-8a4d-e05e09369bc3";
fsType = "ext4";
};
2022-01-24 21:40:22 +00:00
2022-01-25 00:13:49 +00:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/782C-3B0B";
fsType = "vfat";
};
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-01-24 21:40:22 +00:00
swapDevices =
2022-01-25 00:13:49 +00:00
[{ device = "/dev/disk/by-uuid/6a0a9641-00c5-490e-abcc-9efeaeaca1f8"; }];
2022-01-24 21:40:22 +00:00
2022-01-25 00:13:49 +00:00
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-01-24 21:40:22 +00:00
}