Skip to content

Instantly share code, notes, and snippets.

@cenunix
Last active October 16, 2023 11:08
Show Gist options
  • Save cenunix/b332ecb4026ccf3dda62bf564d86b529 to your computer and use it in GitHub Desktop.
Save cenunix/b332ecb4026ccf3dda62bf564d86b529 to your computer and use it in GitHub Desktop.
{ config
, lib
, pkgs
, modulesPath
, ...
}:
{
imports = [ "${toString modulesPath}/installer/cd-dvd/installation-cd-graphical-gnome.nix" ];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [
"efi=noruntime"
"clk_ignore_unused"
"pd_ignore_unused"
"arm64.nopauth"
# "iommu.passthrough=0"
# "iommu.strict=0"
# "pcie_aspm.policy=powersupersave"
];
blacklistedKernelModules = [
"qcom_q6v5_pas"
];
supportedFilesystems = lib.mkForce [
"btrfs"
"reiserfs"
"vfat"
"f2fs"
"xfs"
"ntfs"
"cifs"
"exfat"
"fat8"
"fat16"
"fat32"
"ext2"
"ext3"
"ext4"
];
initrd = {
availableKernelModules = [
"nvme"
"phy_qcom_qmp_pcie"
# "pcie_qcom"
"phy_qcom_qmp_ufs"
"ufs_qcom"
"i2c_hid_of"
"i2c_qcom_geni"
"leds_qcom_lpg"
"pwm_bl"
"qrtr"
"pmic_glink_altmode"
"gpio_sbu_mux"
"phy_qcom_qmp_combo"
"panel-edp"
"msm"
"phy_qcom_edp"
];
};
loader.efi.efiSysMountPoint = "/boot";
};
nixpkgs = {
config = {
allowUnsupportedSystem = true;
allowUnfree = true;
};
};
environment.systemPackages = with pkgs; [
neovim
git
gh
];
system.stateVersion = "23.05";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment