Skip to content

d-zalewski/nix-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

419 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-config

Using just for Nix-Darwin Configuration

This repository uses just as a command runner to simplify common Nix and Nix-Darwin tasks. To use the commands, ensure you have just installed:

brew install just

Run any of the tasks by executing:

just <task>

If you run just with no arguments, it will default to the switch task (see below).

justfile Sections Explained

macOS Section

  • build: Builds the Nix-Darwin system configuration for the current host, but does not switch to it.

    just build

    You can pass a different host or flags if needed:

    just build target_host=myhost flags="--option"
  • trace: Builds the configuration with the --show-trace flag for debugging errors.

    just trace
  • switch: Builds and switches to the new Nix-Darwin configuration for the current host. This is the default when running just with no arguments.

    just switch
    # or simply
    just

Garbage Collection Section

  • gc: Cleans up old generations and runs garbage collection on the Nix store. By default, it keeps the last 5 generations, but you can specify a different number:
    just gc
    just gc generations=10

This helps free up disk space by removing unused packages and system generations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Nix 80.0%
  • Lua 14.2%
  • Just 5.8%