WIP nix/os/devices: add NUC for work
This commit is contained in:
parent
6bea703f6d
commit
e515d26fbf
4 changed files with 71 additions and 0 deletions
31
nix/os/devices/steveej-nuc7pjyh-work/system.nix
Normal file
31
nix/os/devices/steveej-nuc7pjyh-work/system.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
sgx_linuxpackages = let
|
||||
linux_sgx_pkg = { stdenv, fetchurl, buildLinux, ... } @ args:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "5.4.0-rc3";
|
||||
modDirVersion = "5.4.0-rc3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/jsakkine-intel/linux-sgx/archive/v23.tar.gz";
|
||||
sha256 = "11rwlwv7s071ia889dk1dgrxprxiwgi7djhg47vi56dj81jgib20";
|
||||
};
|
||||
kernelPatches = [];
|
||||
|
||||
extraConfig = ''
|
||||
INTEL_SGX y
|
||||
'';
|
||||
|
||||
extraMeta.branch = "5.4";
|
||||
} // (args.argsOverride or {}));
|
||||
linux_sgx = pkgs.callPackage linux_sgx_pkg{};
|
||||
in
|
||||
pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_sgx);
|
||||
in {
|
||||
networking.hostName = "steveej-nuc7pjyh-work-"; # Define your hostname.
|
||||
boot.kernelPackages = lib.mkForce sgx_linuxpackages;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue