Heavily inspired from (malob/nixpkgs).
This is my personal configuration with nix using flakes, home-manager, & nix-darwin for Darwin or MacOS System.
System | Single User | Multiple User | Command |
---|---|---|---|
Linux | โ | โ | Single User โข Multi User |
Darwin (MacOS) | โ | โ | Multi User |
More... |
sh <(curl -L https://nixos.org/nix/install) --daemon
sh <(curl -L https://nixos.org/nix/install) --no-daemon
sh <(curl -L https://nixos.org/nix/install)
In general installation of nix, the nix configuration is located in ~/.config/nix/nix.conf
.
You MUST be set the experimental-features
before use this configuration.
experimental-features = nix-command flakes
// (optional) for distribution cache (DON'T COPY THIS COMMENT LINE)
substituters = https://cache.nixos.org https://cache.nixos.org/ https://r17.cachix.org
- Clone this repository
// with SSH
git clone [email protected]:ri7nz/nixpkgs ~/.config/nixpkgs
// OR with HTTP
git clone https://github.com/ri7nz/nixpkgs ~/.config/nixpkgs
- Change directory to
~/.config/nixpkgs
cd ~/.config/nixpkgs
- Run Build
command for build:nix build .#darwinConfigurations.[NAME].system
Available for[NAME]
:RG
nix build .#darwinConfigurations.RG.system
- Apply from
Result
command for apply the result:./result/sw/bin/darwin-rebuild switch --flake .#[NAME]
Available for[NAME]
:RG
AfterRun Build
you can apply from./result
with this command
./result/sw/bin/darwin-rebuild switch --flake .#RG
- Done ๐๐
- malob/nixpkgs ~ malob Nix System configs!.