Fix build on mistmane

This commit is contained in:
Artemis Tosini 2022-06-09 19:16:28 +00:00
parent 08fa3eab55
commit da0e1e8e28
Signed by: artemist
GPG key ID: EE5227935FE3FF18
3 changed files with 3 additions and 7 deletions

View file

@ -36,7 +36,7 @@
steam-hardware.enable = true; steam-hardware.enable = true;
sane = { sane = {
enable = true; enable = true;
brscan5.enable = true; brscan5.enable = (pkgs.system == "x86_64-linux");
}; };
}; };

View file

@ -3,7 +3,6 @@
{ {
boot = { boot = {
kernel.sysctl."vm.swappiness" = 5; kernel.sysctl."vm.swappiness" = 5;
kernelPackages = pkgs.linuxPackages_pinebookpro_lts;
kernelParams = [ "console=tty1" ]; kernelParams = [ "console=tty1" ];
cleanTmpDir = true; cleanTmpDir = true;
loader.grub.enable = false; loader.grub.enable = false;

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, inputs, ... }:
{ {
imports = [ imports = [
@ -6,6 +6,7 @@
./hardware-configuration.nix ./hardware-configuration.nix
../../sets/laptop.nix ../../sets/laptop.nix
../../sets/workstation.nix ../../sets/workstation.nix
"${inputs.wip-pinebook-pro}/pinebook_pro.nix"
]; ];
networking.hostName = "mistmane"; networking.hostName = "mistmane";
@ -45,9 +46,5 @@
extraConfig = lib.mkForce "HandlePowerKey=lock"; extraConfig = lib.mkForce "HandlePowerKey=lock";
}; };
# rockchip/dptx.bin isn't in the initrd. Instead of fix nixpkgs let's do something incredibly cursed
boot.extraModulePackages = [ (pkgs.callPackage ../../externals/packages/dptx-dummy { kernel = config.boot.kernelPackages.kernel; }) ];
boot.initrd.availableKernelModules = [ "dptx-dummy" ];
system.stateVersion = "21.11"; system.stateVersion = "21.11";
} }