3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/system/boot/systemd
Klemens Nanni cbcc746f8f nixos/systemd: Package only built component units
Account for all `with*` options causing their respective unit files to
not be built, just like the current code `withCryptsetup` already does.

This fixes build errors like the following:
```
missing /nix/store/5fafsfms64fn3ywv274ky7arhm9yq2if-systemd-250.4/example/systemd/system/systemd-importd.service
error: builder for '/nix/store/67rdli5q5akzwmqgf8q0a1yp76jgr0px-system-units.drv' failed with exit code 1
```

Found by using a customised systemd package as follows:
```
systemd.package = pkgs.systemd-small;

nixpkgs.config.packageOverrides = pkgs: {

  "systemd-small" = pkgs.systemd.override {
    withImportd = false;
    withMachined = false;
    ...
  };

};
```
2022-05-16 16:52:25 +02:00
..
coredump.nix nixos: systemd: remove unhelpful comments in additionalUpstreamSystemUnits 2022-03-20 16:14:13 +01:00
initrd-secrets.nix nixos/systemd-stage-1: Add initrd secrets support 2022-04-30 11:41:27 +02:00
initrd.nix systemd-in-stage1: include firmware in initrd 2022-05-02 15:41:14 +03:00
journald.nix nixos: systemd: remove unhelpful comments in additionalUpstreamSystemUnits 2022-03-20 16:14:13 +01:00
logind.nix nixos/systemd: Package only built component units 2022-05-16 16:52:25 +02:00
nspawn.nix nixos/systemd/nspawn: Add missing nspawn unit options 2022-04-24 21:20:59 +01:00
shutdown.nix nixos/systemd-shutdown: Remove unneeded binaries 2022-05-01 17:06:15 +02:00
tmpfiles.nix nixos/stage-2-init: Re-add creation of /etc 2022-04-03 19:03:16 +01:00
user.nix nixos: systemd-lib: Make generateUnits general with default args 2022-03-22 07:02:23 -04:00