Nix Configuration

Updating the system

  • From the initial nixos directory: /etc/nixos: sudo nixos-rebuild switch .
  • From a flake: /etc/nixos: sudo nixos-rebuild --flake .
    • As a default, nix looks for the hostname in the nixosConfigurations key. You can specify another machine/key with sudo nixos-rebuild --flake ".#other-config"

Todos

Resources

Search packages

Docs

Tutorials & Articles

Some flakes users

Install home-manager on Ubuntu

Resources on programs

Integrate Neovim with nix

Making nixGL works with Home Manager

See this issue.

Example:

Partitioning on Nixos system

From NixOS Episode 1 - Installation

  • Create a gpt style partition table
  • Create a 500 mb EFI boot partition with FAT swap system
  • (Optional) Create a Swap partition based on the ram
  • Create the system partition with the remaining space.