Skip to content

amz-x/dotnix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal NixOS System Configuration

Screenshot

NixOS Features

  • NixOS 23.11 (Tapir)
  • Home Manager
  • Linux Kernel 6.3.4-zen1
  • Mesa 23.1.3
  • LightDM (Display Manager)
  • Pantheon Deskop Environment
  • Nushell
  • Starship Prompt
  • Nano CLI Editor
  • Visual Studio Code
  • Opensnitch
  • Steam

NixOS

NixOS comes preinstalled with the Nix package manager, update the nix package manager configuration to enable the nix-command & flakes experimental features.

Enabling Nix Flakes

Edit /etc/nix/nix.conf and add/modify the following line:

experimental-features = nix-command flakes

Setup

Execute the following within the project directory:

# Basic switch
sudo nixos-rebuild switch --flake ./#machine-hostname

# Switch with upgrade
sudo nixos-rebuild switch --flake ./#machine-hostname --upgrade

# Example
sudo nixos-rebuild switch --flake ./#AMZ-Linux

Nix Flakes Commands

Inside the root of the project directory execute the following:

# Updates flake.lock
nix flake update

# Updates flake.lock with refreshed cache
nix flake update --refresh

Nix Store Maintenance

Execute the following, if you would like to run garbage collection:

sudo nix-collect-garbage -d

Resources & Manuals

Guides

Installers

Manuals

Nix & NixOS

Home Manager (Home Directory Management)

Projects Built With Nix