Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/notheotherben/nix-env

Nix environment used to ensure that a system is configured to support development work
https://github.com/notheotherben/nix-env

Last synced: 23 days ago
JSON representation

Nix environment used to ensure that a system is configured to support development work

Awesome Lists containing this project

README

        

# nix-env
My personal [Nix](https://nixos.org) home-manager configuration, used to bootstrap
development environments on my personal machines.

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

## Usage
To use this configuration, you'll need to install [Nix](https://nixos.org/nix/) and then run the following commands:

```bash
# Install the nix-darwin package
nix run nix-darwin -- switch --flake github:notheotherben/nix-env

# Install the home-manager activation package
nix build --no-link 'github:notheotherben/nix-env#homeConfigurations.sierra-mbp.activationPackage'

# Activate the configuration
"$(nix path-info 'github:notheotherben/nix-env#homeConfigurations.sierra-mbp.activationPackage')"/activate
```

In future, if you wish to update your configuration, you can run the following commands:

```bash
nix flake update --flake 'github:notheotherben/nix-env'

nix run nix-darwin -- switch --flake github:notheotherben/nix-env

# Build the flake using concurrent builders
nix build --no-link 'github:notheotherben/nix-env#homeConfigurations.sierra-mbp.activationPackage' -j auto

home-manager switch --flake 'github:notheotherben/nix-env#sierra-mbp'
```