jhonas
fc7e21beaf
• Updated input 'nixpkgs': 'github:nixos/nixpkgs/b8b232ae7b8b144397fdb12d20f592e5e7c1a64d' (2024-01-31) → 'github:nixos/nixpkgs/15aa26cee04922a443dcc2c368b9b49a1350e749' (2024-07-30) • Updated input 'devshell': 'github:numtide/devshell/83cb93d6d063ad290beee669f4badf9914cc16ec' (2024-01-15) → 'github:numtide/devshell/67cce7359e4cd3c45296fb4aaf6a19e2a9c757ae' (2024-07-27) • Removed input 'devshell/flake-utils' • Updated input 'flake-utils': 'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15) → 'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11) |
||
---|---|---|
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.