overlay systemd to minimal

This commit is contained in:
Alejandro Diaz 2023-09-06 01:58:50 -06:00
parent 9d0135751c
commit 7bb26d1e6e
2 changed files with 46 additions and 0 deletions

View file

@ -9,6 +9,48 @@
crossSystem = "aarch64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [
(self: super: {
systemd = super.systemd.override {
pname = "systemd-minimal";
withAcl = false;
withAnalyze = false;
withApparmor = false;
withAudit = false;
withCompression = false;
withCoredump = false;
withCryptsetup = false;
withDocumentation = false;
withEfi = false;
withFido2 = false;
withHostnamed = false;
withHomed = false;
withHwdb = false;
withImportd = false;
withLibBPF = false;
withLibidn2 = false;
withLocaled = false;
withLogind = false;
withMachined = false;
withNetworkd = false;
withNss = false;
withOomd = false;
withPCRE2 = false;
withPam = false;
withPolkit = false;
withPortabled = false;
withRemote = false;
withResolved = false;
withShellCompletions = false;
withTimedated = false;
withTimesyncd = false;
withTpm2Tss = false;
withUserDb = false;
};
})
];
crossSystem = {
gcc.cpu = "cortex-a53";
config = "aarch64-unknown-linux-gnu";

View file

@ -51,4 +51,8 @@
doc.enable = false;
info.enable = false;
};
services.timesyncd.enable = false;
systemd.oomd.enable = false;
systemd.coredump.enable = false;
}