jhonas
6bf0cc114b
• Updated input 'devshell': 'github:numtide/devshell/3e0e60ab37cd0bf7ab59888f5c32499d851edb47' (2023-03-16) → 'github:numtide/devshell/fb6673fe9fe4409e3f43ca86968261e970918a83' (2023-04-28) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/645bc49f34fa8eff95479f0345ff57e55b53437e' (2023-04-19) → 'github:nixos/nixpkgs/897876e4c484f1e8f92009fd11b7d988a121a4e7' (2023-05-06) |
||
---|---|---|
pkgs | ||
template | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
overlay.nix | ||
README.md | ||
tritonshell.nix |
tritonshell
a nix dev & ops shell for triton and manta
What is the package manager nix
? For a refresher, please read on here.
-
If you're already on NixOS and / or have worked with
flakes
before, jump to 2. -
Install nix, the package manager
- Now, make sure you're ready to
nix
with flakes, this should give you some output:
nix flake --help
- Otherwise, proceed to enable flakes (still an experimental feature in
nix
): https://nixos.wiki/wiki/Flakes#Installing_flakes
- Now, make sure you're ready to
-
Get this nix flake template, it will be setup in a new directory
./tritonshell
(feel free to adjust this):
nix flake new --template "git+https://git.greenbaum.cloud/dev/tritonshell?ref=main" ./tritonshell \
&& cd tritonshell
- Optional: Adjust
./flake.nix
to match domains and data centers of your Triton Data Center setup. Look for theCUSTOMIZE
comment.
Greenbaum Cloud users skip this step, everything's preconfigured.
vim ./flake.nix
- Ready to go:
nix develop -c $SHELL
Optional:
If you'd like to add additional packages to your new tritonshell, you
can do so: just edit flake.nix
and look for devshell.packages
. Packages
added here will be pulled from the nixos-unstable
channel, you can search
for available packages here.
You can use nix-direnv
with this template, read here how to install it.
Then, just run:
direnv allow
in the newly created ./tritonshell
directory to automatically rebuild the
flake upon changes to the flake.nix
file.