2018-10-09 13:57:36 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# This script symlinks the nix files to their respective directories in nixos #
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
HOMECONFIGPATH="${HOME}/.config/nixpkgs"
|
|
|
|
NIXOSCONFIGPATH="/etc/nixos"
|
|
|
|
|
|
|
|
mkdir -p "${HOMECONFIGPATH}"
|
2020-04-05 19:19:16 +02:00
|
|
|
for F in `find ./home -mindepth 1 -maxdepth 2`; do
|
2018-10-09 13:57:36 +02:00
|
|
|
ABS_F=`readlink -f "${F}"`
|
|
|
|
ln -s "$ABS_F" "${HOMECONFIGPATH}/`basename ${F}`"
|
|
|
|
done
|
|
|
|
|
2018-12-03 01:31:29 +01:00
|
|
|
for F in `find ./nixos -mindepth 1 -maxdepth 1`; do
|
2018-10-09 13:57:36 +02:00
|
|
|
ABS_F=`readlink -f "${F}"`
|
|
|
|
sudo ln -s "$ABS_F" "${NIXOSCONFIGPATH}/`basename ${F}`"
|
|
|
|
done
|