Skip to content

Latest commit

 

History

History
75 lines (51 loc) · 1.79 KB

README.md

File metadata and controls

75 lines (51 loc) · 1.79 KB

Nix Configuration

hacker shit

inspired by the-nix-way/nome, anthr76/snowflake, and Misterio77/nix-starter-configs.

Setup

NixOS

Start a nix-shell with some basic tools

export NIX_CONFIG="experimental-features = nix-command flakes"
nix shell nixpkgs#git nixpkgs#home-manager

Stub out a template flake

nix flake init -t github:misterio77/nix-starter-config#minimal

Edit some stuff in flake.nix etc, then

home-manager switch --flake .#$(whoami)@$(hostname)
sudo nixos-rebuild switch --flake .#$(hostname)

Tips 'n' Tricks

System upgrades

Update inputs.nixpkgs.url, then

nix flake update
home-manager switch --flake .#$(whoami)@$(hostname)
sudo nixos-rebuild boot --flake .#$(hostname)

Then reboot

Upgrading packages

sudo nixos-rebuild switch --upgrade --flake .#$(hostname)

Run arbitrary packages in a sandboxed nix-shell

nix-shell -p alacritty

Slick dev envs

Check out nix + direnv

Package search

Search for specific versions of packages and get installation directions

Dev templates

Get started with some basic flake dev templates for every language