summary refs log tree commit diff
path: root/nixos.org
diff options
context:
space:
mode:
authorCrazazy2022-08-12 12:30:04 +0200
committerCrazazy2022-08-12 12:30:04 +0200
commitb3ad4c8df45a0d094e1e9f6ce5069062d8f30bbd (patch)
treedd0bd0516ad082b5d470fe75ff00f3b58bdcd9da /nixos.org
parent3282616791ca5b466230872e52669fe5ccd1641e (diff)
add nix-prefabs on boot (if it exists)
Diffstat (limited to 'nixos.org')
-rw-r--r--nixos.org11
1 files changed, 11 insertions, 0 deletions
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