Skip to content

Commit

Permalink
Remove nix-darwin (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella authored Oct 21, 2023
1 parent 481ad09 commit b3269fd
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 452 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ concurrency:

jobs:
build:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- run: nix build .#darwinConfigurations.ci.system
# FIXME: error: Directory /run does not exist, aborting activation
# - run: ./result/sw/bin/darwin-rebuild switch --flake .#ci
- uses: DeterminateSystems/flake-checker-action@v5
- uses: DeterminateSystems/nix-installer-action@v6
- run: nix run home-manager/master -- init --switch
35 changes: 18 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
# [nix-darwin] configuration
# Home Manager Configuration

[![CI](https://github.com/sestrella/nix-home/actions/workflows/ci.yml/badge.svg)](https://github.com/sestrella/nix-home/actions/workflows/ci.yml)
[![CI](https://github.com/sestrella/home-manager.config/actions/workflows/ci.yml/badge.svg)](https://github.com/sestrella/home-manager.config/actions/workflows/ci.yml)

My system configuration managed via `nix-darwin`.
My [Home Manager](https://github.com/nix-community/home-manager) configuration.

## Requirements

- Install [Nix](https://nixos.org/guides/install-nix.html)
- Enable [Flakes](https://nixos.wiki/wiki/Flakes#Permanent) permanently
- Install Nix via [nix-installer](https://github.com/DeterminateSystems/nix-installer)

Alternatively, use the official
[installer](https://nixos.org/guides/install-nix.html) and enable
[Flakes](https://nixos.wiki/wiki/Flakes).

## Getting Started

Activate the system configuration for the first time:
Clone the repository:

```sh
nix build .#darwinConfigurations.work.system
```
git clone https://github.com/sestrella/nix-darwin-config.git ~/.config/home-manager
```

Next time, update system configuration running the following command:
Activate the configuration:

```sh
./bin/switch
```
nix run home-manager/master -- init --switch
```

## Inspired By

A list of repositories that inspired this one:

- [HugoReeves/nix-home](https://github.com/HugoReeves/nix-home/)
- [gvolpe/nix-config](https://github.com/gvolpe/nix-config/)
- [ryantm/home-manager-template](https://github.com/ryantm/home-manager-template/)
A list of projects that inspired me to write this one:

[nix-darwin]: https://github.com/LnL7/nix-darwin
- https://github.com/HugoReeves/nix-home
- https://github.com/gvolpe/nix-config
- https://github.com/ryantm/home-manager-template
Loading

0 comments on commit b3269fd

Please sign in to comment.