diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-18 01:36:43 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-18 01:36:43 +0200 |
commit | 12f06ae4997c5b5ac123454ba1a86c0a294504a2 (patch) | |
tree | 5c9fd8935e69681ce1935eb7472a0d21eb9796f6 /nixos/modules/system | |
parent | 9f65e82b59fde4f7d12c144832e0ff13f8399a40 (diff) | |
download | nixlib-12f06ae4997c5b5ac123454ba1a86c0a294504a2.tar nixlib-12f06ae4997c5b5ac123454ba1a86c0a294504a2.tar.gz nixlib-12f06ae4997c5b5ac123454ba1a86c0a294504a2.tar.bz2 nixlib-12f06ae4997c5b5ac123454ba1a86c0a294504a2.tar.lz nixlib-12f06ae4997c5b5ac123454ba1a86c0a294504a2.tar.xz nixlib-12f06ae4997c5b5ac123454ba1a86c0a294504a2.tar.zst nixlib-12f06ae4997c5b5ac123454ba1a86c0a294504a2.zip |
Doh
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/systemd.nix | 6 |
1 files 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 |