From 1032bc895342fdba2ab0f3d779106fc9abde89eb Mon Sep 17 00:00:00 2001 From: Iulian Meghea Date: Thu, 26 Feb 2026 07:36:38 +0000 Subject: [PATCH] feat: add Nix support to devops image Install upstream Nix in single-user mode so that nix build and nix flake work out of the box for the coder user. - Add xz-utils (required by the Nix installer to decompress the tarball) - Create /nix owned by coder before switching to that user - Run the official nixos.org installer with --no-daemon (no systemd needed) - Write ~/.config/nix/nix.conf to enable nix-command and flakes - Prepend ~/.nix-profile/bin to PATH via ENV --- images/devops/Dockerfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/images/devops/Dockerfile b/images/devops/Dockerfile index 30261e4..40fafb2 100644 --- a/images/devops/Dockerfile +++ b/images/devops/Dockerfile @@ -7,7 +7,7 @@ RUN < ~/.config/nix/nix.conf + +ENV PATH="/home/coder/.nix-profile/bin:${PATH}"