diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@
 The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
 and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
 
+## 0.3.2 - 2022-06-21
+
+### Added
+
+ - Nix 2.9 support
+
 ## 0.3.1 - 2022-05-17
 
 ### Added
diff --git a/hercules-ci-cli.cabal b/hercules-ci-cli.cabal
--- a/hercules-ci-cli.cabal
+++ b/hercules-ci-cli.cabal
@@ -1,7 +1,7 @@
 cabal-version: 1.12
 
 name:           hercules-ci-cli
-version:        0.3.1
+version:        0.3.2
 synopsis:       The hci command for working with Hercules CI
 homepage:       https://docs.hercules-ci.com
 bug-reports:    https://github.com/hercules-ci/hercules-ci-agent/issues
diff --git a/src/Hercules/CLI/Nix.hs b/src/Hercules/CLI/Nix.hs
--- a/src/Hercules/CLI/Nix.hs
+++ b/src/Hercules/CLI/Nix.hs
@@ -102,7 +102,7 @@
           Just focusValue -> do
             match' evalState focusValue >>= \case
               IsAttrs attrset -> do
-                attrs <- getAttrs attrset
+                attrs <- getAttrs evalState attrset
                 isDeriv <- isDerivation evalState focusValue
                 if isDeriv
                   then pure [(mempty {Optparse.cioFiles = False}, prefixStr)]
