An open API service indexing awesome lists of open source software.

https://github.com/erikkrieg/eksys

Nix system and user configuration for MacOS and NixOS hosts.
https://github.com/erikkrieg/eksys

configuration dotfiles macos nix nixos

Last synced: 6 months ago
JSON representation

Nix system and user configuration for MacOS and NixOS hosts.

Awesome Lists containing this project

README

          

# eksys - System and User Configuration

Nix configurations for my MacOS and NixOS hosts.

## Install MacOS

1. Install Nix package manager: https://nixos.org/download.html#nix-install-macos
2. Clone or download the flake source from GitHub.
3. Run `./bootstrap.sh` to build and apply the system configuration.

The bootstrap command builds a derivation and then activates it with nix-darwin. The bootstrap command likely won't succeed on the first run, but if it fails, there should be instructions for manual remediation. Once those are performed, you can re-run `./bootstrap.sh` (there might be a few cycles of this).

## Update MacOS

Rebuild and apply: `nixswitch`

This is an alias for building and activating the system configuration flake,
which is effectively the same as:

```sh
darwin-rebuild switch --flake .#
```

To get latest packages, go into the flake source directory and run:

```sh
nix flake update
```

_In order to apply the update, use `nixswitch` after._

To update inputs and apply the change run `nixup`.

To update a specific input (using `envim` as an example): `nix flake lock --update-input envim`