From fa3826dcf40abec1f8c1c8798a761e9ff7a4ab19 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 22 Apr 2014 15:36:04 +0200 Subject: [PATCH] Ignore *.wants in systemd.packages for now --- nixos/modules/system/boot/systemd.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 6c6adab66e7..4e395899bd3 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -408,10 +408,11 @@ let # Symlink all units provided listed in systemd.packages. for i in ${toString cfg.packages}; do - files=$(echo $i/etc/systemd/${type}/* $i/lib/systemd/${type}/*) - if [ -n "$files" ]; then - ln -s $files $out/ - fi + for fn in $i/etc/systemd/${type}/* $i/lib/systemd/${type}/*; do + if ! [[ "$fn" =~ .wants$ ]]; then + ln -s $fn $out/ + fi + done done # Symlink all units defined by systemd.units. If these are also