Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

NextFire/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-config

Personal Nix configuration for macOS and Linux. It uses flake-parts, nix-darwin, home-manager and sops-nix.

Prerequisites

  • A Nix install with flakes enabled, e.g. via Determinate Systems Nix installer:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
  • sops age private key at ~/.nix-config.key.txt to decrypt home secrets.

nix-darwin (+ home-manager)

Install

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
nix run nix-darwin -- switch --flake .

Update

nix flake update
darwin-rebuild switch --flake .

Standalone home-manager

Install

nix run home-manager/master -- switch --flake . -b backup

Update

nix flake update
home-manager switch --flake . -b backup

Nix dev shells

nix develop .#<shell>

About

nix-darwin + home-manager config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published