From b3ad4c8df45a0d094e1e9f6ce5069062d8f30bbd Mon Sep 17 00:00:00 2001 From: Crazazy Date: Fri, 12 Aug 2022 12:30:04 +0200 Subject: add nix-prefabs on boot (if it exists) --- nixos.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixos.org b/nixos.org index f33d706..3c00fdf 100644 --- a/nixos.org +++ b/nixos.org @@ -73,6 +73,17 @@ stuff }; } #+end_src + Furthermore, I want to have some prefabs available in my $PATH if I make them + #+begin_src nix + { + environment.shellInit = + '' + if [ -h /etc/nixos/nix-prefabs/result ]; then + export PATH=$PATH:/etc/nixos/nix-prefabs/result/bin + fi + ''; + } + #+end_src ** Init system nixos is started with systemd-boot, since we don't run any other distros #+begin_src nix -- cgit 1.4.1-2-gfad0