Skip to content

Commit

Permalink
Update CI workflow (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella authored Oct 22, 2023
1 parent 33f75c2 commit fcb45a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/flake-checker-action@v5
- uses: DeterminateSystems/nix-installer-action@v6
- run: nix run home-manager/master -- init --switch $GITHUB_WORKSPACE
- name: Checkout
uses: actions/checkout@v4
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v5
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v6
- name: Build configuration
run: nix run home-manager/master -- build --flake ${{ github.workspace }}
- name: Activate the configuration
run: ./result/activate
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ My [Home Manager](https://github.com/nix-community/home-manager) configuration.

- Install Nix via [nix-installer](https://github.com/DeterminateSystems/nix-installer)

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

Expand All @@ -20,12 +20,14 @@ Clone the repository:
git clone https://github.com/sestrella/nix-darwin-config.git ~/.config/home-manager
```

Activate the configuration:
Active the configuration for the first time:

```
nix run home-manager/master -- init --switch
nix run home-manager/master -- switch
```

**Note:** For future activations, run the `home-manager switch` command.

## Inspired By

A list of projects that inspired me to write this one:
Expand Down

0 comments on commit fcb45a8

Please sign in to comment.