nixos/*: editorconfig fixes

This commit is contained in:
zowoq
2020-08-08 10:54:16 +10:00
parent 3735c9ef90
commit 8fb410c0ad
10 changed files with 17 additions and 18 deletions

View File

@@ -34,4 +34,4 @@ with lib;
};
}
}

View File

@@ -63,7 +63,7 @@ addEntry() {
copyToKernelsDir $kernel; kernel=$result
copyToKernelsDir $initrd; initrd=$result
fi
mkdir -p $outdir
ln -sf $(readlink -f $path) $outdir/system
ln -sf $(readlink -f $path/init) $outdir/init

View File

@@ -53,7 +53,7 @@ addEntry() {
echo "exec $stage2"
)"
[ "$path" != "$defaultConfig" ] || {
[ "$path" != "$defaultConfig" ] || {
echo "$content" > $tmp
echo "# older configurations: $targetOther" >> $tmp
chmod +x $tmp

View File

@@ -36,4 +36,4 @@ with lib;
};
}
}

View File

@@ -23,7 +23,7 @@ for ((i = 0; i < ${#targets_[@]}; i++)); do
done
else
mkdir -p $out/etc/$(dirname $target)
if ! [ -e $out/etc/$target ]; then
ln -s $source $out/etc/$target
@@ -34,13 +34,12 @@ for ((i = 0; i < ${#targets_[@]}; i++)); do
exit 1
fi
fi
if test "${modes_[$i]}" != symlink; then
echo "${modes_[$i]}" > $out/etc/$target.mode
echo "${users_[$i]}" > $out/etc/$target.uid
echo "${groups_[$i]}" > $out/etc/$target.gid
fi
fi
done