build custom kernel package
This commit is contained in:
parent
ceb3df5723
commit
f8e8c56761
4 changed files with 9448 additions and 23 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./hardware-configuration.nix ];
|
||||
|
@ -10,7 +10,21 @@
|
|||
boot.loader.grub.efiSupport = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
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.hostName = "skynet";
|
||||
|
|
9408
hosts/skynet/kernel-config
Normal file
9408
hosts/skynet/kernel-config
Normal file
File diff suppressed because it is too large
Load diff
|
@ -170,4 +170,7 @@
|
|||
services.gpg-agent.enable = true;
|
||||
services.gpg-agent.enableSshSupport = true;
|
||||
services.gpg-agent.pinentryFlavor = "gnome3";
|
||||
|
||||
services.gnome-keyring.enable = true;
|
||||
services.gnome-keyring.components = ["pkcs11" "secrets" "ssh"];
|
||||
}
|
||||
|
|
Reference in a new issue