-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
69 lines (65 loc) · 1.49 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{ pkgs, lib, config, ... }:
let
martiert = config.martiert;
dtbName = "sc8280xp-lenovo-thinkpad-x13s.dtb";
in {
imports = [
./services
];
config = lib.mkIf (martiert.system.aarch64.arch == "sc8280xp") {
boot = {
kernelPackages = pkgs.callPackage ./kernel {};
kernelParams = [
"clk_ignore_unused"
"pd_ignore_unused"
"arm64.nopauth"
"efi=noruntime"
"pcie.aspm.policy=powersupersave"
];
loader.grub = {
extraFiles = {
dtbName = "${config.boot.kernelPackages.kernel}/dtbs/qcom/${dtbName}";
};
extraConfig = ''
terminal_input console
terminal_output gfxterm
'';
};
};
hardware = {
deviceTree.enable = true;
enableAllFirmware = false;
enableRedistributableFirmware = false;
firmware = [
pkgs.linux-firmware-x13s
];
bluetooth.enable = true;
};
environment.systemPackages = [
pkgs.alsa-ucm-conf
];
martiert = {
boot = {
initrd = {
kernelModules = [
"nvme"
"phy_qcom_qmp_pcie"
"pcie_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"
];
};
kernelModules = [];
};
};
};
}