From 69952c24fb3ee52d395fca1b3d588e4c7ba53b09 Mon Sep 17 00:00:00 2001 From: mhj Date: Sat, 12 Sep 2020 17:48:28 +0000 Subject: [PATCH] My auto-generated Nix hardware config --- hardware.nix | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 hardware.nix diff --git a/hardware.nix b/hardware.nix new file mode 100644 index 0000000..08486f9 --- /dev/null +++ b/hardware.nix @@ -0,0 +1,36 @@ +# 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, ... }: + +{ + imports = + [ + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/1351f1e2-de6d-43f4-a7c1-93cc9c9b9e07"; + fsType = "btrfs"; + options = [ "subvol=ROOT" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/306B-6066"; + fsType = "vfat"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/1351f1e2-de6d-43f4-a7c1-93cc9c9b9e07"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 2; +}