27 lines
886 B
Markdown
27 lines
886 B
Markdown
|
|
# Faris' NixOS config
|
|
|
|
This flake includes the complete NixOS setup for all my computers.
|
|
|
|
It includes the configuration of zsh, neovim, tmux, etc across all the machines. On Linux desktops it uses the Gnome desktop environment. On the main server it uses podman (docker drop-in replacement) containers for all the services.
|
|
|
|
Feel free to take a look and I hope it can be used for inspiration.
|
|
|
|
To update the flake run:
|
|
```
|
|
sudo nix flake update
|
|
```
|
|
To rebuild and switch to the configuration, first copy over the *hardware.nix* which by default on a NixOS install will be at `/etc/nixos/hardware-configuration.nix` and then run one of the following
|
|
```
|
|
sudo nixos-rebuild switch --flake .#desktop
|
|
```
|
|
```
|
|
sudo darwin-rebuild switch --flake .#admins-MacBook-Air
|
|
```
|
|
```
|
|
sudo nixos-rebuild switch --flake .#nixos-server
|
|
```
|
|
```
|
|
sudo nixos-rebuild switch --flake .#nixos-server-nut
|
|
```
|