summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-06-06 21:55:44 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-06-06 21:55:44 +0200
commit54efa501546c9e814a1ed6d12a44bfac78a9dfc9 (patch)
tree018fab59a5f41b7348d20377af21c40b9281c174
parentcba76d4b15d8d64114acf39c3360394fe349951b (diff)
parent755fc00a004ee890582dbb8f35b3b43e09f6202f (diff)
downloadnixos-54efa501546c9e814a1ed6d12a44bfac78a9dfc9.tar
nixos-54efa501546c9e814a1ed6d12a44bfac78a9dfc9.tar.gz
nixos-54efa501546c9e814a1ed6d12a44bfac78a9dfc9.tar.bz2
nixos-54efa501546c9e814a1ed6d12a44bfac78a9dfc9.tar.xz
nixos-54efa501546c9e814a1ed6d12a44bfac78a9dfc9.zip
Merge branch 'flakes-template' into flakes
-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 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}