WIP: feat(systemd): switch to systemd #33
1 changed files with 111 additions and 49 deletions
160
overlay.nix
160
overlay.nix
|
@ -259,7 +259,12 @@ extraPkgs // {
|
||||||
patches = o.patches ++ [
|
patches = o.patches ++ [
|
||||||
./pkgs/qemu/arm-image-friendly-load-addr.patch
|
./pkgs/qemu/arm-image-friendly-load-addr.patch
|
||||||
];
|
];
|
||||||
}); in q.override { nixosTestRunner = true; sdlSupport = false; hostCpuTargets = [ "mips-softmmu" ]; };
|
}); in q.override {
|
||||||
|
vde2 = null;
|
||||||
|
nixosTestRunner = true;
|
||||||
|
sdlSupport = false;
|
||||||
|
hostCpuTargets = [ "mips-softmmu" ];
|
||||||
|
};
|
||||||
|
|
||||||
rsyncSmall =
|
rsyncSmall =
|
||||||
let r = prev.rsync.overrideAttrs(o: {
|
let r = prev.rsync.overrideAttrs(o: {
|
||||||
|
@ -330,54 +335,111 @@ extraPkgs // {
|
||||||
};
|
};
|
||||||
}) { };
|
}) { };
|
||||||
|
|
||||||
systemd = prev.systemd.override {
|
systemd =
|
||||||
withAcl = false;
|
let base = prev.systemd.override {
|
||||||
withAnalyze = false;
|
withAcl = false;
|
||||||
withApparmor = false;
|
withAnalyze = false;
|
||||||
withAudit = false;
|
withApparmor = false;
|
||||||
withBootloader = false;
|
withAudit = false;
|
||||||
# withCompression = true;
|
withBootloader = false;
|
||||||
withCoredump = false;
|
withCompression = false;
|
||||||
withCryptsetup = false;
|
withCoredump = false;
|
||||||
withRepart = false;
|
withCryptsetup = false;
|
||||||
withDocumentation = false;
|
withRepart = false;
|
||||||
withEfi = false;
|
withDocumentation = false;
|
||||||
withFido2 = false;
|
withEfi = false;
|
||||||
withHomed = false;
|
withFido2 = false;
|
||||||
# withHostnamed = true;
|
withHomed = false;
|
||||||
withHwdb = false;
|
withHostnamed = false;
|
||||||
withImportd = false;
|
withHwdb = false;
|
||||||
withIptables = false;
|
withImportd = false;
|
||||||
withKmod = false;
|
withIptables = false;
|
||||||
withLibBPF = false;
|
withKmod = false;
|
||||||
withLibidn2 = false;
|
withLibBPF = false;
|
||||||
withLocaled = false;
|
withLibidn2 = false;
|
||||||
withLogind = false;
|
withLocaled = false;
|
||||||
withMachined = false;
|
withLogind = false;
|
||||||
withNetworkd = false;
|
withMachined = false;
|
||||||
withNss = false;
|
withNetworkd = false;
|
||||||
withOomd = false;
|
withNss = false;
|
||||||
withPam = false;
|
withOomd = false;
|
||||||
withPasswordQuality = false;
|
withPam = false;
|
||||||
withPCRE2 = false;
|
withPasswordQuality = false;
|
||||||
withPolkit = false;
|
withPCRE2 = false;
|
||||||
withPortabled = false;
|
withPolkit = false;
|
||||||
withQrencode = false;
|
withPortabled = false;
|
||||||
withRemote = false;
|
withQrencode = false;
|
||||||
withResolved = false;
|
withRemote = false;
|
||||||
# withShellCompletions = true;
|
withResolved = false;
|
||||||
# withSysusers = true;
|
withShellCompletions = false;
|
||||||
withSysupdate = false;
|
withSysusers = false;
|
||||||
# withTimedated = true;
|
withSysupdate = false;
|
||||||
# withTimesyncd = true;
|
withTimedated = false;
|
||||||
withTpm2Tss = false;
|
withTimesyncd = false;
|
||||||
withUkify = false;
|
withTpm2Tss = false;
|
||||||
withUserDb = false;
|
withUkify = false;
|
||||||
withUtmp = false;
|
withUserDb = false;
|
||||||
withVmspawn = false;
|
withUtmp = false;
|
||||||
withKernelInstall = false;
|
withVmspawn = false;
|
||||||
withLibarchive = false;
|
withKernelInstall = false;
|
||||||
};
|
withLibarchive = false;
|
||||||
|
};
|
||||||
|
in base.overrideAttrs (o: {
|
||||||
|
mesonFlags = o.mesonFlags ++ [
|
||||||
|
# "--optimization=s"
|
||||||
|
"--default-library=static"
|
||||||
|
"--buildtype=minsize"
|
||||||
|
];
|
||||||
|
postInstall = o.postInstall + ''
|
||||||
|
rm -rf $out/share
|
||||||
|
rm $out/lib/libudev.so*
|
||||||
|
rm -rf $out/lib/systemd/catalog
|
||||||
|
rm -rf $out/lib/systemd/system-generators
|
||||||
|
rm $out/lib/systemd/systemd-backlight
|
||||||
|
rm $out/lib/systemd/systemd-battery-check
|
||||||
|
rm $out/lib/systemd/systemd-hibernate-resume
|
||||||
|
rm $out/lib/systemd/systemd-makefs
|
||||||
|
rm $out/lib/systemd/systemd-nsresourced
|
||||||
|
rm $out/lib/systemd/systemd-nsresourcework
|
||||||
|
rm $out/lib/systemd/systemd-shutdown
|
||||||
|
rm $out/lib/systemd/systemd-sleep
|
||||||
|
rm $out/lib/systemd/systemd-binfmt
|
||||||
|
rm $out/lib/systemd/systemd-growfs
|
||||||
|
rm $out/lib/systemd/systemd-mountfsd
|
||||||
|
rm $out/lib/systemd/systemd-mountwork
|
||||||
|
rm $out/lib/systemd/systemd-network-generator
|
||||||
|
rm $out/lib/systemd/systemd-pstore
|
||||||
|
rm $out/lib/systemd/systemd-remount-fs
|
||||||
|
rm $out/lib/systemd/systemd-reply-password
|
||||||
|
rm $out/lib/systemd/systemd-rfkill
|
||||||
|
rm $out/lib/systemd/systemd-socket-proxyd
|
||||||
|
rm $out/lib/systemd/systemd-ssh-proxy
|
||||||
|
rm $out/lib/systemd/systemd-storagetm
|
||||||
|
rm $out/lib/systemd/systemd-volatile-root
|
||||||
|
rm $out/lib/systemd/systemd-xdg-autostart-condition
|
||||||
|
rm -rf $out/example
|
||||||
|
rm $out/bin/bootctl
|
||||||
|
rm $out/bin/systemd-nspawn
|
||||||
|
rm $out/bin/systemd-ac-power
|
||||||
|
rm $out/bin/systemd-dissect
|
||||||
|
rm $out/bin/systemd-ask-password
|
||||||
|
rm $out/bin/systemd-cgls
|
||||||
|
rm $out/bin/systemd-cgtop
|
||||||
|
rm $out/bin/systemd-creds
|
||||||
|
rm $out/bin/systemd-delta
|
||||||
|
rm $out/bin/systemd-detect-virt
|
||||||
|
rm $out/bin/systemd-escape
|
||||||
|
rm $out/bin/systemd-id128
|
||||||
|
rm $out/bin/systemd-machine-id-setup
|
||||||
|
rm $out/bin/systemd-path
|
||||||
|
rm $out/bin/systemd-run
|
||||||
|
rm $out/bin/systemd-socket-activate
|
||||||
|
rm $out/bin/systemd-stdio-bridge
|
||||||
|
rm $out/bin/systemd-sysext
|
||||||
|
rm $out/bin/systemd-tty-ask-password-agent
|
||||||
|
rm $out/bin/systemd-vpick
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
ubootQemuAarch64 = final.buildUBoot {
|
ubootQemuAarch64 = final.buildUBoot {
|
||||||
defconfig = "qemu_arm64_defconfig";
|
defconfig = "qemu_arm64_defconfig";
|
||||||
|
|
Loading…
Reference in a new issue