<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>NixOS on Arek's Blog</title><link>https://blog.kalandyk.xyz/tags/nixos/</link><description>Recent content in NixOS on Arek's Blog</description><generator>Hugo -- 0.147.8</generator><language>en-us</language><lastBuildDate>Sun, 19 Nov 2023 10:17:54 +0100</lastBuildDate><atom:link href="https://blog.kalandyk.xyz/tags/nixos/index.xml" rel="self" type="application/rss+xml"/><item><title>Xbox Wireless Adapter on NixOS</title><link>https://blog.kalandyk.xyz/posts/nixos-xbox-adapter/</link><pubDate>Sun, 19 Nov 2023 10:17:54 +0100</pubDate><guid>https://blog.kalandyk.xyz/posts/nixos-xbox-adapter/</guid><description>&lt;p>Here&amp;rsquo;s a quick how-to on using Xbox Wireless Adapter with NixOS&lt;/p>
&lt;h2 id="driver">Driver&lt;/h2>
&lt;p>To play games with Xbox controller, you have to install a driver first. On Linux we can use &lt;a href="https://github.com/medusalix/xone">xone&lt;/a> which is an open-source one for Xbox One and Xbox Series accessories.&lt;/p>
&lt;p>Installation on NixOS is pretty straightforward, just add enable the driver by adding the following option to your &lt;code>/etc/nixos/configuration.nix&lt;/code>:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-nix" data-lang="nix">&lt;span style="display:flex;">&lt;span>hardware&lt;span style="color:#f92672">.&lt;/span>xone&lt;span style="color:#f92672">.&lt;/span>enable &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#66d9ef">true&lt;/span>;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Then update your system state with:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>sudo nixos-rebuild switch
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The driver should be installed, but it&amp;rsquo;s worth rebooting the system at this point&lt;/p></description></item></channel></rss>