Find a file
jhonas c527fcae02
Bump flake.lock
• Updated input 'devshell':
    'github:numtide/devshell/512a273c0847d3e31941b13bab158bf533eb8d69' (2023-02-02)
  → 'github:numtide/devshell/3e0e60ab37cd0bf7ab59888f5c32499d851edb47' (2023-03-16)
• Updated input 'devshell/nixpkgs':
    'github:NixOS/nixpkgs/5efc8ca954272c4376ac929f4c5ffefcc20551d5' (2022-01-28)
  → 'github:NixOS/nixpkgs/9952d6bc395f5841262b006fbace8dd7e143b634' (2023-02-26)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
  → 'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/e1e1b192c1a5aab2960bf0a0bd53a2e8124fa18e' (2023-01-31)
  → 'github:nixos/nixpkgs/4bb072f0a8b267613c127684e099a70e1f6ff106' (2023-03-27)
2023-03-29 19:22:03 +02:00
pkgs cacert: cleanup, no longer needed as we use the 2023-02-02 12:16:49 +01:00
template nixpkgs-fmt 2022-10-12 15:14:26 +02:00
.gitignore Initial commit 2022-01-21 17:55:29 +01:00
flake.lock Bump flake.lock 2023-03-29 19:22:03 +02:00
flake.nix nixpkgs-fmt 2022-10-12 15:14:26 +02:00
LICENSE Add License 2022-03-03 12:39:37 +01:00
overlay.nix Move template/* one level up to better expose nix 2022-10-12 14:14:05 +02:00
README.md Update README and comment 2022-10-12 14:36:52 +02:00
tritonshell.nix Use cacert from nixpkgs for CURL_CA_BUNDLE 2022-11-27 21:30:47 +01:00

tritonshell

a nix dev & ops shell for triton and manta

asciicast

What is the package manager nix? For a refresher, please read on here.

  1. If you're already on NixOS and / or have worked with flakes before, jump to 2.

  2. Install nix, the package manager

    1. Now, make sure you're ready to nix with flakes, this should give you some output:
    nix flake --help
    
    1. Otherwise, proceed to enable flakes (still an experimental feature in nix): https://nixos.wiki/wiki/Flakes#Installing_flakes
  3. 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
  1. Optional: Adjust ./flake.nix to match domains and data centers of your Triton Data Center setup. Look for the CUSTOMIZE comment.

Greenbaum Cloud users skip this step, everything's preconfigured.

vim ./flake.nix
  1. 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.