Revert "nixos/systemd: Handle template overrides"

This reverts commit e3b90b6ccc.

This commit broke container tests and thus blocked channels from
advancing.
This commit is contained in:
Alexander Foremny
2021-03-19 09:03:49 +01:00
parent 1bb03d47cd
commit 297b1ba320
2 changed files with 1 additions and 53 deletions

View File

@@ -182,18 +182,7 @@ in rec {
# upstream unit.
for i in ${toString (mapAttrsToList (n: v: v.unit) units)}; do
fn=$(basename $i/*)
case $fn in
# if file name is a template specialization, use the template's name
*@?*.service)
# remove @foo.service and replace it with @.service
ofn="''${fn%@*.service}@.service"
;;
*)
ofn="$fn"
esac
if [ -e $out/$ofn ]; then
if [ -e $out/$fn ]; then
if [ "$(readlink -f $i/$fn)" = /dev/null ]; then
ln -sfn /dev/null $out/$fn
else