Skip to content
Snippets Groups Projects
storage005-hardware.nix 1.22 KiB
Newer Older
  • Learn to ignore specific revisions
  • # 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 =
        [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
        ];
    
      boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
      boot.initrd.kernelModules = [ ];
      boot.kernelModules = [ "kvm-intel" ];
      boot.extraModulePackages = [ ];
    
      fileSystems."/" =
    
        { device = "/dev/disk/by-uuid/2653c6bb-396f-4911-b9ff-b68de8f9715d";
    
          fsType = "ext4";
        };
    
      fileSystems."/boot" =
    
        { device = "/dev/disk/by-uuid/68edb827-6750-483d-891e-462333f2dbc1";
          fsType = "ext4";
    
      # Manually created using:
      #   zpool create -m legacy -o ashift=12 root raidz /dev/disk/by-id/{wwn-0x5000cca25dcc7721,wwn-0x5000cca25dcb2ebe,wwn-0x5000cca25dcb1184,scsi-35000cca25dcca2bd,wwn-0x5000cca244c977af,wwn-0x5000cca244c97e6e,wwn-0x5000cca25cc0a136}
      fileSystems."/storage" = {
        device = "root";
        fsType = "zfs";
      };
    
      swapDevices = [ ];
    
    
      nix.maxJobs = lib.mkDefault 32;
      powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
    }