Skip to content

Commit

Permalink
Merge pull request #369 from mikesplain/modified_layout
Browse files Browse the repository at this point in the history
Modified layout
  • Loading branch information
mikesplain authored Jun 11, 2024
2 parents e3b7738 + b5c1823 commit 5d42f88
Show file tree
Hide file tree
Showing 28 changed files with 925 additions and 1,427 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/nix-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,14 @@ jobs:
sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin
sudo mv /etc/shells /etc/shells.before-nix-darwin
- name: Test
env:
- name: Test - Nix Run
env:
NIX_CONFIG: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}"
run: |
nix run nix-darwin --extra-experimental-features nix-command --extra-experimental-features flakes -- switch --flake ./nixos-config
# - run: nix build
- name: Test - Switch
env:
NIX_CONFIG: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}"
run: |
darwin-rebuild switch --flake ./nixos-config
9 changes: 9 additions & 0 deletions nixos-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
Referenced heavily: https://github.com/computercam/_unixconf_nix
https://github.com/LnL7/nix-darwin

New reference: https://github.com/eaksa/eaksa/blob/main/flake.nix

## Commands
```
# Install nix if needed
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
# Installing nix-darwin
nix run nix-darwin --extra-experimental-features nix-command --extra-experimental-features flakes -- switch --flake .
# Using nix-darwin
Expand All @@ -29,6 +34,10 @@ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix
## Uninstall
- Nix darwin first
```
# Make sure nixpkgs is setup:
nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --update
# this or the included darwin-uninstaller command.
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A uninstaller
./result/bin/darwin-uninstaller
Expand Down
142 changes: 70 additions & 72 deletions nixos-config/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5d42f88

Please sign in to comment.