summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system-profiles/core.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/system-profiles/core.nix b/system-profiles/core.nix
index 8fed3751..18c271bd 100644
--- a/system-profiles/core.nix
+++ b/system-profiles/core.nix
@@ -79,7 +79,7 @@ in {
79 system.activationScripts.symlink-flake = '' 79 system.activationScripts.symlink-flake = ''
80 if test -L /etc/nixos; then 80 if test -L /etc/nixos; then
81 ln -nsf ${flake} /etc/nixos 81 ln -nsf ${flake} /etc/nixos
82 elif rmdir --ignore-fail-on-non-empty /etc/nixos; then 82 elif test -d /etc/nixos && rmdir --ignore-fail-on-non-empty /etc/nixos; then
83 ln -s ${flake} /etc/nixos 83 ln -s ${flake} /etc/nixos
84 fi 84 fi
85 ''; 85 '';