Skip to content
Snippets Groups Projects
storage001-hardware.nix 1021 B
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 = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
      boot.initrd.kernelModules = [ ];
      boot.kernelModules = [ "kvm-intel" ];
      boot.extraModulePackages = [ ];
    
      fileSystems."/" =
        { device = "/dev/disk/by-uuid/d0837e6f-72cb-4ffa-85ba-fd57bbbd9a97";
          fsType = "ext4";
        };
    
      fileSystems."/boot" =
        { device = "/dev/disk/by-uuid/915E-08F9";
          fsType = "vfat";
        };
    
        fileSystems."/storage" =
        { device = "root";
          fsType = "zfs";
        };
    
      swapDevices =
        [ { device = "/dev/disk/by-uuid/45eb994e-0d1b-4903-9412-920f0ba017c9"; }
        ];
    
      nix.maxJobs = lib.mkDefault 24;
      powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
    }