summary refs log blame commit diff
path: root/host/rootfs/shell.nix
blob: 9f75835c8b375eefe76f98d00cd00c5f4be2a414 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                              
                                                         
                                     
 
                                                  
 
   
                                          

  
                 
 
                      


                                               
                                            
                                                  
    
 

                                                                             
                                                                           
   
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2022 Unikie

import ../../lib/eval-config.nix ({ config, ... }:

let
  rootfs = import ./. { inherit config; };
in

with config.pkgs;

rootfs.overrideAttrs (
{ passthru ? {}, nativeBuildInputs ? [], ... }:

{
  nativeBuildInputs = nativeBuildInputs ++ [
    cryptsetup jq netcat qemu_kvm reuse util-linux
  ];

  EXT_FS = pkgsStatic.callPackage ../initramfs/extfs.nix { inherit config; };
  INITRAMFS = import ../initramfs { inherit config rootfs; };
  KERNEL = "${passthru.kernel}/${stdenv.hostPlatform.linux-kernel.target}";
}))