2021-11-15 02:49:03 +00:00
|
|
|
|
# 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")
|
|
|
|
|
];
|
|
|
|
|
|
2021-11-15 15:03:59 +00:00
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
|
"nvme"
|
|
|
|
|
"vfat"
|
|
|
|
|
"xhci_pci"
|
|
|
|
|
"usbhid"
|
|
|
|
|
"usb_storage"
|
|
|
|
|
"sd_mod"
|
|
|
|
|
"sdhci_pci"
|
|
|
|
|
"cryptd"
|
|
|
|
|
];
|
|
|
|
|
|
2021-11-16 01:38:58 +00:00
|
|
|
|
# Wifi support
|
|
|
|
|
hardware.firmware = [ pkgs.rtw89-firmware ];
|
|
|
|
|
|
|
|
|
|
# For support of newer AMD GPUs, backlight and internal microphone
|
|
|
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.13") pkgs.linuxPackages_latest;
|
|
|
|
|
|
2021-11-15 02:49:03 +00:00
|
|
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
2021-11-16 03:58:52 +00:00
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.rtw89 ];
|
2021-11-15 15:03:12 +00:00
|
|
|
|
boot.supportedFilesystems = ["zfs"];
|
2021-11-15 02:49:03 +00:00
|
|
|
|
|
2021-11-15 03:22:28 +00:00
|
|
|
|
boot.initrd.luks.devices."crypt" =
|
|
|
|
|
{ device = "/dev/disk/by-partlabel/crypt";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-15 02:49:03 +00:00
|
|
|
|
fileSystems."/" =
|
|
|
|
|
{ device = "rpool/root/nixos";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
|
|
|
|
{ device = "rpool/home";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
2021-11-15 03:22:28 +00:00
|
|
|
|
{ device = "/dev/disk/by-partlabel/boot";
|
2021-11-15 02:49:03 +00:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices =
|
2021-11-15 03:22:28 +00:00
|
|
|
|
[ { device = "/dev/partitions/swap"; }
|
2021-11-15 02:49:03 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
}
|