about summary refs log tree commit diff stats
path: root/sys/svcs/nix/default.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-28 20:53:21 +0100
committerSoispha <soispha@vhack.eu>2024-02-28 20:53:21 +0100
commit490eefdacf21d25cc413e23e62d418e584d9fd95 (patch)
tree4f5ad96f33e9fee16c67d34cbd1c984e0c840409 /sys/svcs/nix/default.nix
parentfix(pkgs/scripts/fupdate): Exit after running the main loop (diff)
downloadnixos-config-490eefdacf21d25cc413e23e62d418e584d9fd95.tar.gz
nixos-config-490eefdacf21d25cc413e23e62d418e584d9fd95.zip
feat(sys/svcs/nix): Set nix path
This is useful in the nix repl
Diffstat (limited to 'sys/svcs/nix/default.nix')
-rw-r--r--sys/svcs/nix/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/svcs/nix/default.nix b/sys/svcs/nix/default.nix
index 2080cee1..fbd2fa22 100644
--- a/sys/svcs/nix/default.nix
+++ b/sys/svcs/nix/default.nix
@@ -11,6 +11,10 @@ in {
   nix = {
     package = pkgs.nixUnstable;
 
+    # This is nice to have in the repl:
+    # :l <nixpkgs>
+    nixPath = ["nixpkgs=${nixpkgs_as_input}"];
+
     registry = {
       nixpkgs.flake = nixpkgs;
       n.flake = nixpkgs;