oliverdavies.uk/source/_daily_emails/2023-04-09.md

23 lines
1.2 KiB
Markdown
Raw Normal View History

2024-01-03 20:00:00 +00:00
---
title: >
2024-02-07 20:01:19 +00:00
Nix, NixOS, Home Manager, and WSL2
2024-01-03 20:00:00 +00:00
pubDate: 2023-04-09
permalink: >-
2024-02-07 20:01:19 +00:00
archive/2023/04/09/nix-nixos-home-manager-and-wsl2
2024-01-03 20:00:00 +00:00
tags:
2024-02-07 20:01:19 +00:00
- linux
- nix
- nixos
- wsl2
2024-01-03 20:00:00 +00:00
---
Although I've been using Linux for work computers for a lot longer, a few years ago, I switched from macOS and an Apple MacBook Pro to using Linux full-time on my personal computers.
My current daily driver laptop is a Tuxedo InfinityBook that I've installed NixOS on.
NixOS, as the name suggests, is a Linux operating system based on the Nix package manager. It has access to the 80,000+ packages in the `nixpkgs` repository and can still install and manage them, but also does a lot more including managing hardware.
For user-level configuration, I use Home Manager. I can configure my home directory including user-specific packages and manage my dotfiles, creating files like `.gitconfig` and linking them to the required destination.
Home Manager can be a NixOS module or a standalone tool - it can be added to NixOS or installed on any Linux distribution, even in WSL2, so I have the same packages that I need installed on every machine as well as having my dotfiles in the correct place and ready to be used.