<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Devenv</id>
	<title>Devenv - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Devenv"/>
	<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Devenv&amp;action=history"/>
	<updated>2026-04-26T05:23:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.0</generator>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Devenv&amp;diff=26670&amp;oldid=prev</id>
		<title>Malix: merge proposal</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Devenv&amp;diff=26670&amp;oldid=prev"/>
		<updated>2025-10-01T14:55:38Z</updated>

		<summary type="html">&lt;p&gt;merge proposal&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:55, 1 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Expand|scope=article}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Merge|Development_environment_with_nix-shell|scope=article}}&lt;/ins&gt;{{Expand|scope=article}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Installation ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Installation ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-26669:rev-26670:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Malix</name></author>
	</entry>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Devenv&amp;diff=26669&amp;oldid=prev</id>
		<title>Malix: request expand</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Devenv&amp;diff=26669&amp;oldid=prev"/>
		<updated>2025-10-01T14:51:57Z</updated>

		<summary type="html">&lt;p&gt;request expand&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:51, 1 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Expand|scope=article}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Installation ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Installation ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;nixos&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;nixos&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-24164:rev-26669:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Malix</name></author>
	</entry>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Devenv&amp;diff=24164&amp;oldid=prev</id>
		<title>StijnRuts: Created page with &quot;== Installation == &lt;syntaxhighlight lang=&quot;nixos&quot;&gt; environment.systemPackages = [   pkgs.devenv ]; &lt;/syntaxhighlight&gt;  == Binding to privileged ports (eg. 80 and 443) == The [https://devenv.sh/integrations/wordpress/ Wordpress example] in the guide suggests the following script:&lt;syntaxhighlight lang=&quot;nix&quot;&gt; scripts.caddy-setcap.exec = &#039;&#039;   sudo setcap &#039;cap_net_bind_service=+ep&#039; ${pkgs.caddy}/bin/caddy &#039;&#039;; &lt;/syntaxhighlight&gt;But this does not work on NixOS. It fails with &lt;co...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Devenv&amp;diff=24164&amp;oldid=prev"/>
		<updated>2025-08-19T04:57:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Installation == &amp;lt;syntaxhighlight lang=&amp;quot;nixos&amp;quot;&amp;gt; environment.systemPackages = [   pkgs.devenv ]; &amp;lt;/syntaxhighlight&amp;gt;  == Binding to privileged ports (eg. 80 and 443) == The [https://devenv.sh/integrations/wordpress/ Wordpress example] in the guide suggests the following script:&amp;lt;syntaxhighlight lang=&amp;quot;nix&amp;quot;&amp;gt; scripts.caddy-setcap.exec = &amp;#039;&amp;#039;   sudo setcap &amp;#039;cap_net_bind_service=+ep&amp;#039; ${pkgs.caddy}/bin/caddy &amp;#039;&amp;#039;; &amp;lt;/syntaxhighlight&amp;gt;But this does not work on NixOS. It fails with &amp;lt;co...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Installation ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;nixos&amp;quot;&amp;gt;&lt;br /&gt;
environment.systemPackages = [&lt;br /&gt;
  pkgs.devenv&lt;br /&gt;
];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Binding to privileged ports (eg. 80 and 443) ==&lt;br /&gt;
The [https://devenv.sh/integrations/wordpress/ Wordpress example] in the guide suggests the following script:&amp;lt;syntaxhighlight lang=&amp;quot;nix&amp;quot;&amp;gt;&lt;br /&gt;
scripts.caddy-setcap.exec = &amp;#039;&amp;#039;&lt;br /&gt;
  sudo setcap &amp;#039;cap_net_bind_service=+ep&amp;#039; ${pkgs.caddy}/bin/caddy&lt;br /&gt;
&amp;#039;&amp;#039;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;But this does not work on NixOS. It fails with &amp;lt;code&amp;gt;Failed to set capabilities on file &amp;#039;setcap&amp;#039;: Read-only file system&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can work around this by creating a local copy of Caddy, running &amp;lt;code&amp;gt;setcap&amp;lt;/code&amp;gt; on that, and then copying the Caddy process exec command but referring it to our local binary.&amp;lt;syntaxhighlight lang=&amp;quot;nix&amp;quot;&amp;gt;&lt;br /&gt;
# This creates a local copy of Caddy that can bind to privileged ports like 80 and 443&lt;br /&gt;
scripts.caddy-setcap.exec = lib.mkForce &amp;#039;&amp;#039;&lt;br /&gt;
  mkdir -p ./bin&lt;br /&gt;
  cp ${pkgs.caddy}/bin/caddy ./bin/caddy&lt;br /&gt;
  sudo setcap &amp;#039;cap_net_bind_service=+ep&amp;#039; ./bin/caddy&lt;br /&gt;
&amp;#039;&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
# This launces the local Caddy&lt;br /&gt;
processes.caddy-local.exec = &amp;#039;&amp;#039;${lib.replaceString &amp;quot;${pkgs.caddy}&amp;quot; &amp;quot;.&amp;quot; config.processes.caddy.exec}&amp;#039;&amp;#039;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;It is most useful to do this in &amp;lt;code&amp;gt;devenv.local.nix&amp;lt;/code&amp;gt;, so your non-NixOS colleagues can still use the default setup.&lt;/div&gt;</summary>
		<author><name>StijnRuts</name></author>
	</entry>
</feed>