Since Microsoft has gone full-steam ahead enshittifying Windows and Valve has achieved nearly full Steam support on Linux, I decided to finally try running Linux on my home desktop.
Over the past few years I’ve run a variety of VMs and bare-metal servers (well, Raspberry Pis) with NixOS and have generally found the experience extremely pleasant. Everything tends to work out-of-the-box and update cleanly and it is easy to avoid accumulating cruft in long running servers.
So, I figured I would build out a new flake for a home desktop environment, run it alongside my old Windows environment, and see how well I could get by without an NT kernel.
Specs
I built my desktop in 2016 and since then have upgraded the graphics card (from a GTX 1080 to a GTX 4080) and added a new M.2 SSD to store games. The full system specs are below:
| MB | ASUS ROG Maximus IX Code |
| CPU | Intel Core i7-7700K CPU @ 4.20GHz |
| GPU | ASUS TUF GeForce RTX 4080 |
| RAM | G.SKILL TridentZ 64GB DDR4 3600 |
| SSD1 | Samsung 960 PRO M.2 512GB NVMe SSD |
| SSD2 | Samsung 990 PRO M.2 2TB NVMe SSD |
| HDD | 3x HGST Deskstar NAS 4TB 7200RPM SATA HDDs in RAID 5 |
Windows Setup
Disk Cleanup
Before I installed Linux I needed to make space on SSD1 for the new Linux partition. Windows’ Disk Management tool allows you to shrink a partition from the right however it will give up if it runs into any files. Fortunately it spits out a command you can run to see what file was in the way. I wanted to allocate 256GB for Linux and ended up having to deal with two files:
System Volume Information- where Windows stores System Restore points.pagefile.sys- Windows swap space.
Using my favorite search engine I found instructions to delete the former and disable the latter. Given I have 64GB of RAM I didn’t feel the swap space was too important so I’ve left that disabled.
With those files out of the way Disk Management was able to shrink my main partition and make room for a new 256GB partition.
Boot Media
Next up I needed to create a bootable USB drive to install NixOS. I downloaded
the graphical installer from the NixOS website
and Rufus to flash a USB drive. Despite Rufus'
suggestion I needed to flash the USB drive in dd mode and not ISO mode for
it to boot.
NixOS Install
At this point I was ready to boot into Linux and start the install1. The
NixOS live image booted without issue though I had to establish my WiFi
connection with nmtui instead of the regular graphical interface.
It is worth mentioning I wrote this post in mid-May 2026 and am currently using the NixOS unstable branch (at rev 4e92bbc). If you are using a different release your mileage may vary.
Disk Partitioning
NixOS stores both the kernel and the initrd image in the EFI System Partition
(ESP) by default. Each generation on my system is about 55MB. Unfortunately
Windows only provisioned a 100MB ESP! Some guides2 suggest resizing the ESP
but I think a better option is to leverage systemd-boot’s XBOOTLDR support
which lets you install the systemd bootloader to the ESP but load the kernel
and initrd image from another partition.
To accomplish this I split my 256GB space into two partitions: a 1GB FAT32
XBOOTLDR partition (bls_boot in GParted terms) and 255GB EXT4 partition. Then
I configured the bootloader in my new flake’s configuration.nix to enable the
XBOOTLDR support3:
boot.loader.efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/efi";
};
boot.loader.systemd-boot = {
enable = true;
xbootldrMountPoint = "/boot";
};
hardware-configuration.nix
The next step was to generate hardware-configuration.nix. I started by
mounting my new EXT4 data partition to /mnt, the Windows ESP to /mnt/efi,
and my new XBOOTLDR partition to /mnt/boot. I then ran nixos-generate-config --root /mnt and copied the generated
/mnt/etc/nixos/hardware-configuration.nix into my nixfiles repo.
nixos-install
At this point everything was ready to for install. My default nixfiles
configuration starts up an i3 desktop environment which I was fine with to
start. I ran nixos-install from /mnt and rebooted into my new system.
NixOS Configuration
Graphics
NVIDIA drivers were easy to get working but not without issues:
hardware.graphics.enable = true;
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia.open = false;
At one point I was dealing with a blank desktop environment on boot and had to disable modesetting in the early kernel environment via:
boot.kernelParams = [ "nomodeset" ];
I later removed this and have not had any issues.
Desktop Environment
I chose to try out the COSMIC desktop environment because I am a fan of Rust and Gnome and KDE have always felt very bloated to me.
services.displayManager.cosmic-greeter.enable = true;
services.desktopManager.cosmic.enable = true;
services.displayManager.autoLogin = {
enable = true;
user = "tchitten";
};
So far it has worked well though I have been a little disappointed with how stuttery the animations can be (that said, never have I ever used a Linux Desktop Environment with smooth animations…).
Windows Mounts
To access the data from my 2TB SSD2 I mounted it in /mnt/data with the
following configuration:
boot.supportedFilesystems = [ "ntfs" ];
fileSystems."/mnt/data" = {
device = "/dev/disk/by-partuuid/dbd8f4d4-b002-4293-af86-fede4eb678f6";
fsType = "ntfs3";
options = [ "nofail" ];
};
I added the nofail option after originally just linking to the device name
/dev/nvme1n1p2 and being unable to boot after the SSDs somehow reordered
themselves…
Issues
Hibernation seems to be completely broken due to NVIDIA driver issues. Upon waking up the monitors briefly show a TTY and then go back to sleep. I can manage to switch to a different TTY (e.g. Ctrl+Alt+F2) to view the kernel logs which are littered with error messages like:
2026-05-23T17:38:09,414267-04:00 [drm:nv_drm_atomic_apply_modeset_config [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to initialize semaphore for plane fence
2026-05-23T17:38:09,414279-04:00 [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to apply atomic modeset. Error code: -11
2026-05-23T17:38:09,414309-04:00 NVRM: GPU at PCI:0000:01:00: GPU-e4e5b633-b5d7-b9d6-935c-73b856c3b1e3
2026-05-23T17:38:09,414311-04:00 NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 11 Error
2026-05-23T17:38:09,414315-04:00 NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 18 Error
2026-05-23T17:38:09,414317-04:00 NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x405840=0xa2040800
2026-05-23T17:38:09,414349-04:00 NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x405848=0x80000000
2026-05-23T17:38:09,415194-04:00 NVRM: Xid (PCI:0000:01:00): 13, pid=1541, name=.cosmic-comp-wr, Graphics Exception: channel 0x00000004, Class 0000c997, Offset 00000000, Data 00000000
2026-05-23T17:38:09,420545-04:00 NVRM: Xid (PCI:0000:01:00): 13, pid=1541, name=.cosmic-comp-wr, Graphics Exception: Shader Program Header 18 Error
2026-05-23T17:38:09,420568-04:00 NVRM: Xid (PCI:0000:01:00): 13, pid=1541, name=.cosmic-comp-wr, Graphics Exception: ESR 0x405840=0x82040000
2026-05-23T17:38:09,420595-04:00 NVRM: Xid (PCI:0000:01:00): 13, pid=1541, name=.cosmic-comp-wr, Graphics Exception: ESR 0x405848=0x80000000
2026-05-23T17:38:09,421416-04:00 NVRM: Xid (PCI:0000:01:00): 13, pid=1541, name=.cosmic-comp-wr, Graphics Exception: channel 0x00000007, Class 0000c997, Offset 00000000, Data 00000000
2026-05-23T17:38:12,581364-04:00 [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Flip event timeout on head 0
2026-05-23T17:38:12,581493-04:00 [drm:nv_drm_atomic_apply_modeset_config [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to initialize semaphore for plane fence
2026-05-23T17:38:12,581498-04:00 [drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to apply atomic modeset. Error code: -11
2026-05-23T17:38:12,604384-04:00 NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: Shader Program Header 18 Error
I’ve tried out both the open source and proprietary NVIDIA drivers and toggled
settings such as nvidia_drm.fbdev to no avail. I ended up just disabling
hibernation.
Conclusion
Overall I felt the installation process went very smoothly and I continue to be impressed with how easy it is to bring up and maintain a NixOS system. With the exception of some fringe GPU issues my desktop has been very stable and while I’m not yet brave enough to kill off the Windows partition… someday!
If you have any questions or if anything was unclear please don’t hesitate to reach out on Mastodon.