@cryptotaxi247 / infra-1 / commits / a62afcef

Add hardware config for macofborg1

Rob Vermaas committed Feb 20, 2021 at 20:46 UTC a62afcef16e414a3f4c03819fc79e9b9384fe02a
1 file changed +40
macs/nodes/macofborg1.nix new
+40
@@ -0,0 +1,40 @@
1 +# Do not modify this file! It was generated by ‘nixos-generate-config’
2 +# and may be overwritten by future invocations. Please make changes
3 +# to /etc/nixos/configuration.nix instead.
4 +{ config, lib, pkgs, modulesPath, ... }:
5 +
6 +{
7 + imports =
8 + [ (modulesPath + "/installer/scan/not-detected.nix")
9 + ];
10 +
11 + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
12 + boot.initrd.kernelModules = [ ];
13 + boot.kernelModules = [ "kvm-intel" ];
14 + boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
15 + boot.supportedFilesystems = [ "zfs" ];
16 + boot.kernelParams = [ "nomodeset" ];
17 +
18 + boot.loader.systemd-boot.enable = true;
19 + boot.loader.efi.canTouchEfiVariables = false;
20 + boot.loader.grub.efiInstallAsRemovable = true;
21 +
22 + fileSystems."/" =
23 + { device = "rpool/root";
24 + fsType = "zfs";
25 + };
26 +
27 + fileSystems."/boot" =
28 + { device = "/dev/disk/by-label/boot";
29 + fsType = "vfat";
30 + };
31 +
32 + swapDevices =
33 + [ { device = "/dev/disk/by-label/swap"; }
34 + ];
35 +
36 + hardware.video.hidpi.enable = lib.mkDefault true;
37 +
38 + networking.hostId = "d0dce459";
39 + nixpkgs.config.allowUnfree = true;
40 +}