Skip to content

dvcorreia/nix-config

Repository files navigation

dvcorreia/nix-config

Repo contains configuration for personal machines.

Hostname OS Description Specifications
macbook-m3-pro MacOS Sequoia My precious personal laptop Macbook Pro 14" 2023 w/ M3 Pro CPU 36GB RAM and 1TB SSD
macbook-pro-intel MacOS Sonoma Backup college laptop that also helps me test x86 things Macbook Pro 13" 2018 w/ 2.3 GHz Quad-core Intel i5 CPU 8GB LPDDR3 RAM and 256GB SSD
proart-7950x NixOS Desktop computer that surely will be a server someday ProArt X670E-Creator WiFi motherboard w/ AMD 7950x 2x32GB 6000MHz CL30 RAM and 1TB SDD Samsung 990 Pro
sines NixOS Hetzner server used as my internet entrypoint Hetzner CX22 2vCPU 4GB RAM 40GB at the Helsinki datacenter

And a few others like:

  • wsl target for setting my NixOS configuration in Windows WSL
  • Home manager configurations for dvcorreia accross different systems

Bootstrap a system

First and foremost, if you are not using NixOS you will need to install Nix.

Note

If your Linux distro has selinux enabled by default, Nix will warn about not supporting it. Turn it off by setting SELINUX=disabled in /etc/selinux/config.

Darwin

nix-shell
sudo bootstrap-darwin-system <hostname>

WSL

Follow the instructions in the NixOS WSL documentation, with special attention to how-to/change-username.

Home Manager

nix-shell
sudo bootstrap-home-manager <username>

Then, you will be able to switch generations with:

home-manager switch --flake .

References

About

My NixOS and Darwin systems configuration

Topics

Resources

Stars

Watchers

Forks