core/pkgs/by-name/sy/systemd/packages.nix

69 lines
1.8 KiB
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ ... }:
res: pkgs: super:
2024-06-30 08:12:46 +00:00
with pkgs; {
2024-05-02 00:46:19 +00:00
systemd = callPackage ./. {
# break some cyclic dependencies
util-linux = util-linuxMinimal;
# provide a super minimal gnupg used for systemd-machined
gnupg = gnupg.override {
enableMinimal = true;
guiSupport = false;
};
};
systemdMinimal = systemd.override {
pname = "systemd-minimal";
withAcl = false;
withAnalyze = false;
withApparmor = false;
withAudit = false;
withCompression = false;
withCoredump = false;
withCryptsetup = false;
withRepart = false;
withDocumentation = false;
withEfi = false;
withFido2 = false;
withHostnamed = false;
withHomed = false;
withHwdb = false;
withImportd = false;
withIptables = 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;
withSysupdate = false;
withSysusers = false;
withTimedated = false;
withTimesyncd = false;
withTpm2Tss = false;
withUserDb = false;
withUkify = false;
withBootloader = false;
withPasswordQuality = false;
withVmspawn = false;
withQrencode = false;
};
systemdLibs = systemdMinimal.override {
pname = "systemd-minimal-libs";
buildLibsOnly = true;
};
# We do not want to include ukify in the normal systemd attribute as it
# relies on Python at runtime.
2024-06-30 08:12:46 +00:00
systemdUkify = systemd.override { withUkify = true; };
2024-05-02 00:46:19 +00:00
2024-06-30 08:12:46 +00:00
udev = if (with stdenv.hostPlatform; isLinux && isStatic) then libudev-zero else systemdLibs;
2024-05-02 00:46:19 +00:00
}