Skip to content
Snippets Groups Projects
storage003-hardware.nix 1.35 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, modulesPath, ... }:
    
    {
      imports =
        [ (modulesPath + "/installer/scan/not-detected.nix")
        ];
    
      boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" ];
      boot.initrd.kernelModules = [ ];
      boot.kernelModules = [ "kvm-intel" ];
      boot.extraModulePackages = [ ];
      boot.supportedFilesystems = [ "zfs" ];
      boot.kernel.sysctl = { "vm.swappiness" = 0; };
    
      fileSystems."/" =
        { device = "/dev/disk/by-uuid/56a050e2-daee-40e2-becb-17d1f7908ceb";
          fsType = "ext4";
        };
    
      fileSystems."/boot" =
        { device = "/dev/disk/by-uuid/B89B-F110";    
          fsType = "vfat";
        };
    
      # Manually created using:
      #   zpool create -f -m legacy -o ashift=12 root raidz /dev/disk/by-id/{wwn-0x5000cca249d43969,wwn-0x5000039a8bc0075e,wwn-0x5000cca249d44a67,wwn-0x5000cca249d46730,wwn-0x5000cca25dcc719c,wwn-0x5000cca25dcc0241,wwn-0x5000039a8bc00765}
      fileSystems."/storage" =
        { device = "root";
          fsType = "zfs";
        };
    
      swapDevices =     
        [ { device = "/dev/disk/by-uuid/e47cfddc-485c-46fb-9004-c9b8619b81ff"; }
        ];
    
      nix.maxJobs = lib.mkDefault 24;
      powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
    }