Skip to content

Commit

Permalink
Separate CI build from activate step
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Oct 21, 2023
1 parent 33f75c2 commit c5a6765
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ jobs:
- 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: 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 c5a6765

Please sign in to comment.