From 159d2947bf673ee16e5d765b61cebf12e6b67691 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 4 Jul 2024 13:01:45 +0200 Subject: start with beta as mini copy --- beta/hardware-configuration.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 beta/hardware-configuration.nix (limited to 'beta/hardware-configuration.nix') diff --git a/beta/hardware-configuration.nix b/beta/hardware-configuration.nix new file mode 100644 index 0000000..8472002 --- /dev/null +++ b/beta/hardware-configuration.nix @@ -0,0 +1,29 @@ +# 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 = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ "amdgpu" ]; + boot.kernelModules = [ "kvm-amd" ]; + + # efi partition + fileSystems."/boot" = + { device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part1"; + fsType = "vfat"; + neededForBoot = true; + }; + + # vms + fileSystems."/home/cullmann/vms" = + { device = "vpool/vms"; + fsType = "zfs"; + depends = [ "/home" ]; + }; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} -- cgit v1.2.3