Skip to content

Commit

Permalink
Try to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesplain committed Jun 11, 2024
1 parent 5d42f88 commit e51559e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/nix-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ jobs:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup
run: |
sed -i '' "s/default/$(scutil --get LocalHostName)/g" nixos-config/hosts/default/configuration.nix
sed -i '' "s/mike.splain/runner/g" nixos-config/hosts/default/configuration.nix
sed -i '' "s/default = nix-darwin.lib.darwinSystem/$(scutil --get LocalHostName) = nix-darwin.lib.darwinSystem/g" nixos-config/flake.nix
sed -i '' "s/aarch64-darwin/${{matrix.os.arch}}/g" nixos-config/flake.nix
sed -i '' "s/defaultHostname/$(scutil --get LocalHostName)/g" nixos-config/flake.nix
sed -i '' "s/mike.splain/runner/g" nixos-config/flake.nix
sed -i '' "s/defaultHostname/${{matrix.os.arch}}/g" nixos-config/flake.nix
sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin
sudo mv /etc/shells /etc/shells.before-nix-darwin
Expand Down
5 changes: 5 additions & 0 deletions nixos-config/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@
hostName = "SNS005454";
# username = "mike.splain";
};
defaultHostname = configuration.system {
system = "defaultSystem";
hostName = "defaultHostname";
# username = "mike.splain";
};


# SNS005454 = nix-darwin.lib.darwinSystem {
Expand Down
1 change: 0 additions & 1 deletion nixos-config/result

This file was deleted.

0 comments on commit e51559e

Please sign in to comment.