Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Personal nix configurations for macOS and Linux using nix-darwin, flakes, and home-manager.

License

Notifications You must be signed in to change notification settings

booklearner/nixconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixconfig

Personal nix configurations for macOS and Linux using nix-darwin, flakes, and home-manager.

Feel free to reach out to me on Matrix (@booklearner:matrix.org) if you have any questions and need any help setting up your own system.

Directory Structure

  • configs: Static configuration files, for example git, vim, ssh, etc. configuration files.
  • hosts: Each machine maintained by this nix flake setup has its own file in here, for example one for my laptop and (eventually) one for my remote server(s).
  • lib: Any nix helper code used throughout this setup.
  • modules: Specific nix configuration files, can be imported and shared across hosts. For example, setting up developer tools we want on every machine.

Getting Started

Install nix, and add nix command and flakes to configuration:

# ~/.config/nix/nix.conf
experimental-features = nix-command flakes

Install nix-darwin:

nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer

We can now build and switch to the configuration:

darwin-rebuild build --flake .#terminal
darwin-rebuild switch --flake .#terminal

About

Personal nix configurations for macOS and Linux using nix-darwin, flakes, and home-manager.

Topics

Resources

License

Stars

Watchers

Forks