summaryrefslogtreecommitdiff
path: root/modules/devenv/dotfiles.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/devenv/dotfiles.nix')
-rw-r--r--modules/devenv/dotfiles.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/devenv/dotfiles.nix b/modules/devenv/dotfiles.nix
index 8b8d95b..7f11194 100644
--- a/modules/devenv/dotfiles.nix
+++ b/modules/devenv/dotfiles.nix
@@ -40,15 +40,15 @@ in {
let
content =
text
- + lib.optionalString (name == ".gitignore") ''
- # dotfiles
+ + lib.optionalString (name == ".gitignore" && dotfilesToIgnore != []) ''
+ ### dotfiles
${lib.concatStringsSep "\n" dotfilesToIgnore}
'';
in ''
${
if gitignore
- then "ln -s"
- else "cp"
+ then "ln --symbolic --force"
+ else "install --mode=644"
} "${builtins.toFile name content}" "${name}"
''
)