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

64 lines
1.9 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 =
2022-02-23 22:42:42 +00:00
[
(modulesPath + "/installer/scan/not-detected.nix")
2022-02-14 20:50:52 +00:00
];
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.kernelParams = [ "no_console_suspend" "amdgpu.gpu_recovery=1" "init_on_free=0"];
2022-01-24 21:40:22 +00:00
boot.extraModulePackages = [ ];
2022-02-14 20:50:52 +00:00
fileSystems."/" =
2022-02-23 22:42:42 +00:00
{
device = "/dev/disk/by-uuid/60e06bf9-f4c4-4555-879b-23ade6599704";
2022-02-14 20:50:52 +00:00
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-04-26 22:26:28 +00:00
fileSystems."/mnt/share" = {
device = "//BART/share/";
2022-02-06 23:01:27 +00:00
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
2022-04-26 22:26:28 +00:00
[ "${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=100" ];
2022-02-06 13:21:48 +00:00
};
2022-04-26 22:26:28 +00:00
fileSystems."/mnt/media" = {
device = "//BART/media/";
fsType = "cifs";
options =
let
# 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";
in
[ "${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=100" ];
};
2022-02-14 20:50:52 +00:00
fileSystems."/boot/efi" =
2022-02-23 22:42:42 +00:00
{
device = "/dev/disk/by-uuid/274B-0F7C";
2022-02-14 20:50:52 +00:00
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
}