From a385214f28797543d63edfd33b1ad2f67a1e779f Mon Sep 17 00:00:00 2001 From: Dmitriy Holkin Date: Wed, 12 Feb 2020 02:34:44 +0400 Subject: [PATCH] add hardware-conf --- hardware-configuration/AMD-Workstation.nix | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 hardware-configuration/AMD-Workstation.nix diff --git a/hardware-configuration/AMD-Workstation.nix b/hardware-configuration/AMD-Workstation.nix new file mode 100644 index 0000000..8971ccd --- /dev/null +++ b/hardware-configuration/AMD-Workstation.nix @@ -0,0 +1,48 @@ +# 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 = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/6ff40d9f-8ed8-46c7-8bdd-da6242eae75e"; + fsType = "btrfs"; + options = [ "subvol=@nixos" ]; + }; + + fileSystems."/.snapshots" = + { device = "/dev/disk/by-uuid/6ff40d9f-8ed8-46c7-8bdd-da6242eae75e"; + fsType = "btrfs"; + options = [ "subvol=@snapshots" ]; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/6ff40d9f-8ed8-46c7-8bdd-da6242eae75e"; + fsType = "btrfs"; + options = [ "subvol=@home" ]; + }; + + fileSystems."/nix/store" = + { device = "/dev/disk/by-uuid/6ff40d9f-8ed8-46c7-8bdd-da6242eae75e"; + fsType = "btrfs"; + options = [ "subvol=@nix-store" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9850-7AEE"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 12; +}