diff --git a/shell.nix b/shell.nix index e0e45d0a2..1684ae684 100644 --- a/shell.nix +++ b/shell.nix @@ -8,7 +8,12 @@ let ":" (lib.mapAttrsToList (name: channel: "${name}=${channel}") channels); + nixosRepl = pkgs.writeShellScriptBin "nixos-repl" "nix repl nixos-repl.nix"; + in pkgs.mkShell { name = "fc-nixos"; - NIX_PATH="fc=${toString ./.}:${nixPathUpstreams}"; + NIX_PATH="fc=${toString ./.}:${nixPathUpstreams}:nixos-config=/etc/nixos/configuration.nix"; + shellHook = '' + export PATH=$PATH:${nixosRepl}/bin + ''; }