From 12f06ae4997c5b5ac123454ba1a86c0a294504a2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 18 Apr 2014 01:36:43 +0200 Subject: [PATCH] Doh --- nixos/modules/system/boot/systemd.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index db253a0c5827..5bdb8bdac0b5 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -401,8 +401,10 @@ let # Symlink all units provided listed in systemd.packages. for i in ${toString cfg.packages}; do - if [ -n "$(echo $i/etc/systemd/${type}/*)" ]; then - ln -s $i/etc/systemd/${type}/* $i/lib/systemd/${type}/* $out/ + files=$(echo $i/etc/systemd/${type}/* $i/lib/systemd/${type}/*) + echo $i: $files + if [ -n "$files" ]; then + ln -s $files $out/ fi done