summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system-profiles/core.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/system-profiles/core.nix b/system-profiles/core.nix
index c31ba0c4..588f4632 100644
--- a/system-profiles/core.nix
+++ b/system-profiles/core.nix
@@ -75,5 +75,13 @@ in {
75 }; 75 };
76 76
77 environment.systemPackages = [ pkgs.git ] ++ lib.optional hasSops pkgs.gnupg; 77 environment.systemPackages = [ pkgs.git ] ++ lib.optional hasSops pkgs.gnupg;
78
79 system.activationScripts.symlink-flake = ''
80 if test -L /etc/nixos; then
81 ln -nsf ${flake} /etc/nixos
82 elif rmdir --ignore-fail-on-non-empty /etc/nixos; then
83 ln -s ${flake} /etc/nixos
84 fi
85 '';
78 }; 86 };
79} 87}