diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-06-06 21:55:35 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-06-06 21:55:35 +0200 |
| commit | 755fc00a004ee890582dbb8f35b3b43e09f6202f (patch) | |
| tree | 6b81e6818a50fea98a4e312bce641ae6c0e0e557 /system-profiles | |
| parent | 81f351c4feb807797f1bd5b671936a52f40eb2c4 (diff) | |
| download | nixos-755fc00a004ee890582dbb8f35b3b43e09f6202f.tar nixos-755fc00a004ee890582dbb8f35b3b43e09f6202f.tar.gz nixos-755fc00a004ee890582dbb8f35b3b43e09f6202f.tar.bz2 nixos-755fc00a004ee890582dbb8f35b3b43e09f6202f.tar.xz nixos-755fc00a004ee890582dbb8f35b3b43e09f6202f.zip | |
link flake into /etc/nixos
Diffstat (limited to 'system-profiles')
| -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 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 | } |
