diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-15 23:14:20 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-15 23:14:20 +0200 |
commit | cbcc1e432846f2c88215b123428867a3ec035467 (patch) | |
tree | 8c7304c4244ddcbcb7d16d76bb885a13346c4a17 | |
parent | a5ddf80061c46fff19295ffa56c2e84393c7a411 (diff) | |
download | nixos-cbcc1e432846f2c88215b123428867a3ec035467.tar nixos-cbcc1e432846f2c88215b123428867a3ec035467.tar.gz nixos-cbcc1e432846f2c88215b123428867a3ec035467.tar.bz2 nixos-cbcc1e432846f2c88215b123428867a3ec035467.tar.xz nixos-cbcc1e432846f2c88215b123428867a3ec035467.zip |
cp should overwrite existing symlinks
-rw-r--r-- | custom/dotfiles.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/dotfiles.nix b/custom/dotfiles.nix index 305794da..f96675e1 100644 --- a/custom/dotfiles.nix +++ b/custom/dotfiles.nix | |||
@@ -18,7 +18,7 @@ let | |||
18 | cd ${dotfiles} | 18 | cd ${dotfiles} |
19 | ${findutils}/bin/find . -type d -print0 | ${findutils}/bin/xargs -0 -I '{}' -- ${coreutils}/bin/install -o ${name.owner} -g ${name.group} -d "${name.dir}/{}" | 19 | ${findutils}/bin/find . -type d -print0 | ${findutils}/bin/xargs -0 -I '{}' -- ${coreutils}/bin/install -o ${name.owner} -g ${name.group} -d "${name.dir}/{}" |
20 | ${findutils}/bin/find . -type f \( -not -path './.config/systemd/*' \) -print0 | ${findutils}/bin/xargs -0 -I '{}' -- ln -s -f "${dotfiles}/{}" "${name.dir}/{}" | 20 | ${findutils}/bin/find . -type f \( -not -path './.config/systemd/*' \) -print0 | ${findutils}/bin/xargs -0 -I '{}' -- ln -s -f "${dotfiles}/{}" "${name.dir}/{}" |
21 | ${findutils}/bin/find . -type f \( -path './.config/systemd/*' \) -print0 | ${findutils}/bin/xargs -0 -I '{}' -- cp -f "${dotfiles}/{}" "${name.dir}/{}" | 21 | ${findutils}/bin/find . -type f \( -path './.config/systemd/*' \) -print0 | ${findutils}/bin/xargs -0 -I '{}' -- cp --remove-destination "${dotfiles}/{}" "${name.dir}/{}" |
22 | ${findutils}/bin/find . -type f -print0 | ${findutils}/bin/xargs -0 -I '{}' -- chown -h "${name.owner}:${name.group}" "${name.dir}/{}" | 22 | ${findutils}/bin/find . -type f -print0 | ${findutils}/bin/xargs -0 -I '{}' -- chown -h "${name.owner}:${name.group}" "${name.dir}/{}" |
23 | ''; | 23 | ''; |
24 | }; | 24 | }; |