Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove nix-darwin #19

Merged
merged 5 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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