2023-01-02 03:32:38 +00:00
|
|
|
# Nix
|
|
|
|
|
|
|
|
Install Nix and Home-Manager
|
2023-01-02 05:11:03 +00:00
|
|
|
```shell
|
2023-01-02 05:13:43 +00:00
|
|
|
$ nix-channel --add https://nixos.org/channels/nixos-22.11 nixos
|
2023-01-02 05:11:03 +00:00
|
|
|
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
|
|
|
|
$ nix-channel --update
|
|
|
|
```
|
2023-01-02 03:32:38 +00:00
|
|
|
|
|
|
|
For Macos:
|
|
|
|
|
|
|
|
Install nix-darwin
|
|
|
|
```shell
|
2023-01-02 05:13:43 +00:00
|
|
|
$ nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin
|
|
|
|
$ nix-channel --update
|
2023-01-02 03:32:38 +00:00
|
|
|
$ nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
|
|
|
|
$ ./result/bin/darwin-installer
|
|
|
|
$ ./result/sw/bin/darwin-rebuild switch --flake .
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-09-15 17:12:05 +00:00
|
|
|
# How To
|
|
|
|
|
|
|
|
Clone the repository, then symlink `ln -s` each file to the dotted version in your homedirectory.
|
2015-09-15 17:14:11 +00:00
|
|
|
|
2015-09-15 17:12:05 +00:00
|
|
|
ex:
|
2015-09-15 17:14:11 +00:00
|
|
|
|
2022-10-05 04:49:37 +00:00
|
|
|
```ln -s dotfiles/shell_funcs ~/.shell_funcs```
|