diff options
author | Christoph Cullmann <cullmann@kde.org> | 2024-07-04 13:01:45 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2024-07-04 13:01:45 +0200 |
commit | 159d2947bf673ee16e5d765b61cebf12e6b67691 (patch) | |
tree | 7656b088527b572ecb328075d8c2f23bac690160 /beta/hardware-configuration.nix | |
parent | 4861e9642b5016f6451d72ede4016b580327b2da (diff) |
start with beta as mini copy
Diffstat (limited to 'beta/hardware-configuration.nix')
-rw-r--r-- | beta/hardware-configuration.nix | 29 |
1 files changed, 29 insertions, 0 deletions
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; +} |