nixpkgs/nixos/modules/system
Maximilian Bosch a9e3ec1d6e
nixos/systemd-nspawn: disallow multiple packages with .nspawn-units
In contrast to `.service`-units, it's not possible to declare an
`overrides.conf`, however this is done by `generateUnits` for `.nspawn`
units as well. This change breaks the build if you have two derivations
configuring one nspawn unit.

This will happen in a case like this:

``` nix
{ pkgs, ... }: {
  systemd.packages = [
    (pkgs.writeTextDir "etc/systemd/nspawn/container0.nspawn" ''
      [Files]
      Bind=/tmp
    '')
  ];
  systemd.nspawn.container0 = {
    /* ... */
  };
}
```
2020-04-04 21:11:21 +02:00
..
activation $toplevel/system: use kernel's architecture 2020-03-20 16:55:44 +00:00
boot nixos/systemd-nspawn: disallow multiple packages with .nspawn-units 2020-04-04 21:11:21 +02:00
etc environment.etc: fix typo 2020-03-09 12:01:41 +01:00