forked from NixOS/nixos-hardware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
38 lines (37 loc) · 949 Bytes
/
default.nix
File metadata and controls
38 lines (37 loc) · 949 Bytes
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
{
config,
lib,
pkgs,
...
}:
{
imports = [ ../. ];
boot = {
# kernelParams = [ "console=ttyS2,1500000n8" ];
kernelParams = [
"no_console_suspend"
"console=tty1"
"pcie_aspm=off" # pcie seems broken on kernel 6.19. Original post https://community.mnt.re/t/error-message-after-apt-update-upgrade/4188/7
];
# kernel modules needed for the virtual console
initrd.availableKernelModules = [
"gpio_shared_proxy"
"panel_edp"
"phy_rockchip_samsung_hdptx"
"rockchipdrm"
"ti_sn65dsi86"
];
};
boot.loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
hardware.alsa.enablePersistence = true;
hardware.graphics.enable = lib.mkDefault true;
system.activationScripts.asound = ''
if [ ! -e "/var/lib/alsa/asound.state" ]; then
mkdir -p /var/lib/alsa
cp ${./initial-asound.state} /var/lib/alsa/asound.state
fi
'';
}