Archived
0
0
Fork 0

build custom kernel package

This commit is contained in:
Daryl Ronningen 2022-12-22 20:53:32 -08:00
parent ceb3df5723
commit f8e8c56761
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
4 changed files with 9448 additions and 23 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
{ {
imports = [ ./hardware-configuration.nix ]; imports = [ ./hardware-configuration.nix ];
@ -10,7 +10,21 @@
boot.loader.grub.efiSupport = true; boot.loader.grub.efiSupport = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = let linux_relms_pkg = {kernelPatches, lib, ...}: pkgs.linuxKernel.manualConfig {
lib = lib;
stdenv = pkgs.llvmPackages_14.stdenv;
configfile = ./kernel-config;
allowImportFromDerivation = true;
version = "${pkgs.linux_6_1.version}-relms";
modDirVersion = pkgs.linux_6_1.modDirVersion;
src = builtins.fetchurl {
url = "https://github.com/Relms12345/linux/archive/9d2f6060fe4c3b49d0cdc1dce1c99296f33379c8.tar.gz";
sha256 = "1e798bfcd26cf606659ec32ec862e0ec92b831c552b3066e9540b9d920cc3a35";
};
};
linux_relms = pkgs.callPackage linux_relms_pkg{};
in
pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_relms);
# Networking # Networking
networking.hostName = "skynet"; networking.hostName = "skynet";

9408
hosts/skynet/kernel-config Normal file

File diff suppressed because it is too large Load diff

View file

@ -170,4 +170,7 @@
services.gpg-agent.enable = true; services.gpg-agent.enable = true;
services.gpg-agent.enableSshSupport = true; services.gpg-agent.enableSshSupport = true;
services.gpg-agent.pinentryFlavor = "gnome3"; services.gpg-agent.pinentryFlavor = "gnome3";
services.gnome-keyring.enable = true;
services.gnome-keyring.components = ["pkcs11" "secrets" "ssh"];
} }