Nix / NixOS
Install Nix
Use without installing
export NIX_CONFIG="extra-experimental-features = flakes nix-command"
nix run gitlab:pinage404/git-gamble -- --help
To install it at
-
project level with
flake.nix
, see exampleTL;DR
export NIX_CONFIG="extra-experimental-features = flakes nix-command" nix flake init --template gitlab:pinage404/git-gamble
-
project level with
shell.nix
, see example -
user level with Home Manager, see example
DirEnv
To automate the setup of the environment it's recommanded to install DirEnv
Add in .envrc
use nix
Then run this command
direnv allow
Cachix
If you want to avoid rebuilding from scratch, you can use Cachix
cachix use git-gamble
Update
export NIX_CONFIG="extra-experimental-features = flakes nix-command"
nix flake update