73 lines
1.5 KiB
Nix
73 lines
1.5 KiB
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot = {
|
|
initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
|
initrd.kernelModules = [ ];
|
|
initrd.supportedFilesystems = [ "zfs" ];
|
|
kernelModules = [ "kvm-intel" ];
|
|
kernelPackages = pkgs.linuxPackages;
|
|
supportedFilesystems = [ "ntfs" ];
|
|
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
};
|
|
|
|
hardware = {
|
|
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
};
|
|
};
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
fileSystems."/" = {
|
|
device = "rpool/system/root";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/home" = {
|
|
device = "rpool/user/home";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/var" = {
|
|
device = "rpool/system/var";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/tmp" = {
|
|
device = "rpool/local/tmp";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/var/log" = {
|
|
device = "rpool/system/var/log";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/var/tmp" = {
|
|
device = "rpool/system/var/tmp";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-uuid/E63E-8E75";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
swapDevices = [ ];
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
environment.systemPackages = [
|
|
pkgs.apfs-fuse
|
|
];
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
}
|