Modularize hardware config and remove specific nix folder
This commit is contained in:
parent
a5042bb645
commit
9ac5b25036
72 changed files with 322 additions and 100 deletions
|
|
@ -1,20 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
# credit to benley: https://github.com/benley/dotfiles/commit/325748c3a8553d55c9fab08654a77b252aa0fde7
|
||||
patched_ssdt = pkgs.stdenv.mkDerivation {
|
||||
name = "patched_ssdt";
|
||||
src = ./.;
|
||||
buildInputs = [ pkgs.libarchive ];
|
||||
installPhase = ''
|
||||
mkdir -p kernel/firmware/acpi
|
||||
cp ${./ssdt6.aml} kernel/firmware/acpi/ssdt6.aml
|
||||
mkdir -p $out
|
||||
echo kernel/firmware/acpi/ssdt6.aml | bsdcpio -v -o -H newc -R 0:0 > $out/lenotrolli-ssdt.img
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
||||
boot.initrd.prepend = [ "${patched_ssdt}/lenotrolli-ssdt.img" ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue