nix-darwin

用于 Darwin 的 nix 模块。「nix modules for darwin」

Github stars Tracking Chart

nix-darwin

Build Status

Nix modules for darwin, /etc/nixos/configuration.nix for macOS.

Install

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

or if you run into problems with that, try the older bootstrap.sh script

NOTE: the system activation scripts don't overwrite existing etc files, so files like /etc/bashrc and /etc/zshrc won't be
updated by default. If you didn't use the installer or skipped some of the options you'll have to take care of this yourself.
Either modify the existing file to source/import the one from /etc/static or remove it. Some examples:

  • mv /etc/bashrc /etc/bashrc.orig
  • `echo 'if test -e /etc/static/bashrc; then . /etc/static/bashrc; fi'

Main metrics

Overview
Name With Ownernix-darwin/nix-darwin
Primary LanguageNix
Program languageNix (Language Count: 2)
PlatformMac
License:MIT License
所有者活动
Created At2016-10-16 14:26:46
Pushed At2025-04-12 17:29:39
Last Commit At2025-04-12 19:29:39
Release Count0
用户参与
Stargazers Count3.9k
Watchers Count35
Fork Count510
Commits Count2.1k
Has Issues Enabled
Issues Count672
Issue Open Count238
Pull Requests Count522
Pull Requests Open Count87
Pull Requests Close Count143
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private