<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Direnv on neildaemond&#39;s hacker blog</title>
    <link>https://808.ninja/tags/direnv/</link>
    <description>Recent content in Direnv on neildaemond&#39;s hacker blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 13 Jun 2025 10:36:55 +0800</lastBuildDate>
    <atom:link href="https://808.ninja/tags/direnv/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Nix Flake error: path &#39;/nix/store/--/flake.nix&#39; does not exist</title>
      <link>https://808.ninja/coder/nix-flake-error-path-x-does-not-exist/</link>
      <pubDate>Fri, 13 Jun 2025 10:36:55 +0800</pubDate>
      <guid>https://808.ninja/coder/nix-flake-error-path-x-does-not-exist/</guid>
      <description>&lt;h4 id=&#34;ive-noticed-a-path-_-does-not-exist-quirk-when-copying-the-flakenix-file-from-one-project-to-another&#34;&gt;I&amp;rsquo;ve noticed a &amp;lsquo;path _ does not exist&amp;rsquo; quirk when copying the &lt;code&gt;flake.nix&lt;/code&gt; file from one project to another&lt;/h4&gt;&#xA;&lt;p&gt;I thought that I could replicate the nix-flake defined environment of one folder(project) by copying &lt;code&gt;flake.nix&lt;/code&gt; and &lt;code&gt;.envrc&lt;/code&gt; into a new folder. When I do that, I&amp;rsquo;m asked to run &lt;code&gt;direnv allow&lt;/code&gt; on the new folder, but under a particular circumstance, something weird happens; you&amp;rsquo;ll get an error like this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;direnv: loading ~/proj/project-name/.envrc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;direnv: using flake .&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;error: path &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;/nix/store/0cc..nm8-source/flake.nix&amp;#39;&lt;/span&gt; does not exist&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br/&gt;</description>
    </item>
  </channel>
</rss>
