running nix package & home manager on darwin
nix home manager for any kind linux distribution
my NixOS configuration for old MacBook Pro
nix run github:kemalmao19/flake#nixvim
Easy install with determinate systems:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
- Clone this repository
// with SSH
git clone git@github.com:kemalmao19/flake
// OR with HTTP
git clone https://github.com/kemalmao19/flake
- Change directory to
flake
cd flake
- Run Build
command for build:nix build .#darwinConfigurations.[NAME].system
Available for[NAME]
:kemalmao
nix build .#darwinConfigurations.kemalmao.system
- Apply Build result
command for apply the result:
darwin-rebuild switch --flake .#[NAME]
Available for[NAME]
:kemalmao
AfterRun Build
you can apply fromdarwin-rebuild switch --flake .#kemalmao
with this command
darwin-rebuild switch --flake .#kemalmao
- Done
- Run Build
command for build:nix build .#homeConfigurations.[NAME].activationPackage
Available for[NAME]
:kemalmao
nix build .#homeConfigurations.kemalmao.activationPackage
- Apply Build result
command for apply the result:
./result/activate
./result/activate
next u can use this for updating config
home-manager switch --flake .
- Done
You can try
sudo nixos-rebuild switch --flake .#kemalmao