Get Nix
Reproducible builds, declarative environments, one toolchain for everything.
getnix.io/install redirects to the
Determinate Nix Installer
How it works
One file,
all environments
One use case is to run
nix develop
to get an identical dev shell with every tool your project needs, on
any machine.
01
Declarative
Pin exact versions in code
02
Reproducible
Same inputs, same output
03
Universal
Linux, macOS, WSL, CI
# flake.nix
{
description = "Go Dev Environment";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { nixpkgs, ... }:
let
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
devShells = forAllSystems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
default = pkgs.mkShell {
packages = with pkgs; [ go gopls golangci-lint delve ];
};
});
};
}$ nix develop
(nix) $ go version
go version go1.26.1 linux/amd64
(nix) $ which gopls dlv golangci-lint
/nix/store/…-gopls/bin/gopls
/nix/store/…-delve/bin/dlv
/nix/store/…-golangci-lint/bin/golangci-lintHands-on
Learn Nix by building
What is Nix?
A practical introduction to Nix — what it does, why it exists, and the core concepts you need before diving into real projects.
Reproducible Go with Nix & Docker
Set up a Nix development environment for Go and build a Docker image with a byte-by-byte identical binary in development and production.
End Environment Drift: Manage macOS & Linux from a Single Nix Repo
Manage your entire desktop environment — dotfiles, applications, shell, system preferences — declaratively across macOS and Linux from a single repository.
AI + Nix: Run Anything, Install Nothing
Use Nix to give AI agents full host access to any software — including graphical applications — without permanently installing anything. Run ad-hoc, garbage collect when done.
Automatic NixOS Upgrades with Forgejo Actions
Keep NixOS servers and desktops up-to-date automatically — CI updates flake.lock, hosts self-upgrade daily, and you review a diff before anything deploys.
Explore
Nix ecosystem
Curated external resources to go further with Nix.
Reference
Documentation
Official tutorials and reference on nix.dev.
Distribution
NixOS
A Linux distro built entirely on Nix.
Concept
Flakes
Modern, reproducible Nix project structure.
Tool
Home Manager
Manage dotfiles and user config with Nix.
Search
Nixpkgs Search
Search 120,000+ packages in Nixpkgs.
Forum
Community
Nix Discourse forum for help and discussion.
Get started
Ready to try Nix?
Install in one command and follow a guide to build something real.