summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2023-06-12 10:47:21 +1000
committerMichael Hoang <enzime@users.noreply.github.com>2023-06-17 22:09:38 +1000
commitfc955520dd26ddbed189f19edc438f7c408e470e (patch)
treebbf483c00a7a84671563a2b74519678e79808bf1 /.github
parent7c16d31383a90e0e72ace0c35d2d66a18f90fb4f (diff)
flake: add template with basic flake config
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 172e35c..eafecb4 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -133,14 +133,14 @@ jobs:
nix-shell -A installer.check
- name: Build simple flake configuration
run: |
- nix build ./modules/examples#darwinConfigurations.simple.system --override-input darwin .
+ nix build ./modules/examples/flake#darwinConfigurations.simple.system --override-input darwin .
- name: Activate derivation of simple flake build
run: |
- ./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#simple --override-input darwin .
+ ./result/sw/bin/darwin-rebuild switch --flake ./modules/examples/flake#simple --override-input darwin .
- name: Rebuild and activate simple flake, but this time using nix-darwins flake interface
run: |
. /etc/static/bashrc
- darwin-rebuild build --flake ./modules/examples#simple --override-input darwin .
+ darwin-rebuild build --flake ./modules/examples/flake#simple --override-input darwin .
- name: Test git submodules
run: |
. /etc/static/bashrc
@@ -155,6 +155,7 @@ jobs:
popd
cp -a ./modules/examples/. /tmp/test-nix-darwin-submodules
+ cp -a ./modules/examples/flake/flake.nix /tmp/test-nix-darwin-submodules
pushd /tmp/test-nix-darwin-submodules
/usr/bin/sed -i.bak \
@@ -214,14 +215,14 @@ jobs:
nix-shell -A installer.check
- name: Build simple flake configuration
run: |
- nix build ./modules/examples#darwinConfigurations.simple.system --override-input darwin .
+ nix build ./modules/examples/flake#darwinConfigurations.simple.system --override-input darwin .
- name: Activate derivation of simple flake build
run: |
- ./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#simple --override-input darwin .
+ ./result/sw/bin/darwin-rebuild switch --flake ./modules/examples/flake#simple --override-input darwin .
- name: Rebuild and activate simple flake, but this time using nix-darwins flake interface
run: |
. /etc/static/bashrc
- darwin-rebuild build --flake ./modules/examples#simple --override-input darwin .
+ darwin-rebuild build --flake ./modules/examples/flake#simple --override-input darwin .
- name: Test git submodules
run: |
. /etc/static/bashrc
@@ -236,6 +237,7 @@ jobs:
popd
cp -a ./modules/examples/. /tmp/test-nix-darwin-submodules
+ cp -a ./modules/examples/flake/flake.nix /tmp/test-nix-darwin-submodules
pushd /tmp/test-nix-darwin-submodules
/usr/bin/sed -i.bak \