diff options
-rw-r--r-- | system-profiles/core.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/system-profiles/core.nix b/system-profiles/core.nix index 5b78c0fd..8fed3751 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 | } |