mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-03 13:30:57 +07:00
1.0 KiB
1.0 KiB
Development shell
The development shell makes it easy to get all of the dependencies needed to interact with the homelab.
Prerequisites
!!! info
NixOS users can skip this step.
Install Nix using one of the following methods:
If you're using the official installer, add the following to your
~/.config/nix/nix.conf
to enable Flakes:
experimental-features = nix-command flakes
How to open it
Run the following command:
nix develop
It will open a shell with all the dependencies defined in ./flake.nix
:
[khuedoan@ryzentower:~/Documents/homelab]$ which kubectl
/nix/store/0558zzzqynzw7rx9dp2i7jymvznd1cqx-kubectl-1.30.1/bin/kubectl
!!! tip
If you have [`direnv`](https://direnv.net) installed, you can run `direnv
allow` once and it will automatically enter the Nix shell every time you
`cd` into the project.