Skip to content

Commit

Permalink
Minifiy nvidia jetson orin image
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Kharin <[email protected]>
  • Loading branch information
remimimimimi committed Feb 9, 2023
1 parent a73f47d commit 0e1e969
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
45 changes: 45 additions & 0 deletions configurations/host/minimal.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ ... }:
{
nixpkgs.overlays = [
(self: super: {
qemu = super.qemu.override {
alsaSupport = false;
pulseSupport = false;
sdlSupport = false;
jackSupport = false;
gtkSupport = false;
vncSupport = false;
smartcardSupport = false;
spiceSupport = false;
ncursesSupport = false;
libiscsiSupport = false;
tpmSupport = false; # XXX: Probably shouldn't be disabled
hostCpuOnly = true;
};
# NOTE: Git is used internally in microvm.nix host nixos module
git = super.git.override {
nlsSupport = false; # XXX: Propbably shouldn't be disabled
withManual = false;
pythonSupport = false;
withpcre2 = false;
};
systemd = super.systemd.override {
# withCompression = false; # XXX
withCryptsetup = false;
withDocumentation = false;
withFido2 = false;
withHomed = false;
withHwdb = false; # XXX
withLibBPF = true; # XXX: Probably should be disabled
withLocaled = false;
# withOomd = false; # XXX
withPCRE2 = false;
withPortabled = false; # XXX
# withResolved = false; # XXX
withShellCompletions = false;
withTpm2Tss = false;
withUserDb = false;
};
})
];
}
2 changes: 2 additions & 0 deletions targets/nvidia-jetson-orin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
inherit self system;
})

../configurations/host/minimal.nix

#### on-host development supporting modules ####
# drop/replace modules below this line for any real use
../modules/development/authentication.nix
Expand Down

0 comments on commit 0e1e969

Please sign in to comment.