Skip to content

akatch/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages