-
Create a directory within the user home directory which will house the configuration files and clone the repository.
cd ~ && mkdir .config && gh repo clone dotfiles ~/.config
-
If the computer being set up is completely fresh
xcode-select
may need to be installed.xcode-select --install
-
Download and install nix:
sh <(curl -L https://nixos.org/nix/install)
-
Edit the files within the configurations so that the configured system architecture matches the actual architecture of the system, the configured system name matches matches the actual system name, and the configured user home directory matches the actual user home directory.
# make sure the following example parameters match the system attributes # in flake.nix darwinConfigurations.<name> = darwin.lib.system { system = "<system_architecture>" ... remaining configuration } # in configuration.nix {...}: { users.user.<user>.home = "<user_home_dir>" }
and so on.
-
Run nix build from the configuraiton directory or the nix subdirectory of the configuration directory.
nix build --stack-trace --extra-experimental-features 'nix-command flakes' .#darwinConfigurations.theo.system
note:
--extra-experimental-features
will only need to be added once. After the first build, its added tonix.conf
and is no longer needed as a flag to thenix build
command. -
Run
./result/sw/bin/darwin-rebuild switch --flake .
from within thenix
subdirectory of the~/.config
directory. -
Enjoy!
-
Notifications
You must be signed in to change notification settings - Fork 0
theomantz/dotfiles
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
dotfile repository managed by nix
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published