Find a file
jhonas b002aa8ed3
chore: update flake inputs
• Updated input 'devshell':
    'github:numtide/devshell/cd4e2fda3150dd2f689caeac07b7f47df5197c31' (2023-09-29)
  → 'github:numtide/devshell/83cb93d6d063ad290beee669f4badf9914cc16ec' (2024-01-15)
• Added input 'devshell/flake-utils':
    'github:numtide/flake-utils/4022d587cbbfd70fe950c1e2083a02621806a725' (2023-12-04)
• Added input 'devshell/flake-utils/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
• Updated input 'devshell/nixpkgs':
    'github:NixOS/nixpkgs/9952d6bc395f5841262b006fbace8dd7e143b634' (2023-02-26)
  → 'github:NixOS/nixpkgs/63143ac2c9186be6d9da6035fa22620018c85932' (2024-01-02)
• Removed input 'devshell/systems'
• Updated input 'flake-utils':
    'github:numtide/flake-utils/ff7b65b44d01cf9ba6a71320833626af21126384' (2023-09-12)
  → 'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/87828a0e03d1418e848d3dd3f3014a632e4a4f64' (2023-10-06)
  → 'github:nixos/nixpkgs/b8b232ae7b8b144397fdb12d20f592e5e7c1a64d' (2024-01-31)
2024-02-03 13:07:27 +01: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 chore: update flake inputs 2024-02-03 13:07:27 +01:00
flake.nix flake: fix devshell overlay 2023-03-29 19:25:39 +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 devshell: remove cli 2023-03-29 19:30:07 +02: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.