mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nix): add a first nix, nix-darwin, and home-manager setup
This commit is contained in:
22
nix/README.md
Normal file
22
nix/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Nix Dotfiles
|
||||
|
||||
This is my folder where I migrate my current dotfile setup to [Nix](https://nixos.org/), [nix-darwin](https://github.com/LnL7/nix-darwin), and [home-manager](https://github.com/nix-community/home-manager).
|
||||
|
||||
> [!DANGER] Warning
|
||||
> This is a work in progress and I am still learning Nix, so expect things to be broken.
|
||||
|
||||
```sh
|
||||
# First time install
|
||||
nix run nix-darwin -- switch --flake ~/.config/nix-darwin
|
||||
```
|
||||
|
||||
Make sure this is added to your path:
|
||||
|
||||
```sh
|
||||
export PATH="/run/current-system/sw/bin:$PATH"
|
||||
```
|
||||
|
||||
```sh
|
||||
# Switch to new configuration
|
||||
darwin-rebuild switch --flake ~/.dotfiles/nix
|
||||
```
|
||||
Reference in New Issue
Block a user