Skip to content

Commit

Permalink
fixup! use flake inptus for holo-nixpkgs and nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Sep 5, 2024
1 parent 72d13ee commit 08ac4b9
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/build-hds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,24 @@ jobs:
password ${{ secrets.NIX_GITHUB_PRIVATE_PASSWORD }}
EOF
sudo mkdir -p /etc/systemd/system/nix-daemon.service.d/
sudo dd of=/etc/systemd/system/nix-daemon.service.d/github-credentials.conf <<EOF
[Service]
Environment=NIX_GITHUB_PRIVATE_USERNAME=${{ secrets.NIX_GITHUB_PRIVATE_USERNAME }}
Environment=NIX_GITHUB_PRIVATE_PASSWORD=${{ secrets.NIX_GITHUB_PRIVATE_PASSWORD }}
EOF
sudo systemctl daemon-reload
sudo systemctl restart nix-daemon.service
if type systemctl; then
sudo mkdir -p /etc/systemd/system/nix-daemon.service.d/
sudo dd of=/etc/systemd/system/nix-daemon.service.d/github-credentials.conf <<EOF
[Service]
Environment=NIX_GITHUB_PRIVATE_USERNAME=${{ secrets.NIX_GITHUB_PRIVATE_USERNAME }}
Environment=NIX_GITHUB_PRIVATE_PASSWORD=${{ secrets.NIX_GITHUB_PRIVATE_PASSWORD }}
EOF
sudo systemctl daemon-reload
sudo systemctl restart nix-daemon.service
elif type launchctl; then
sudo launchctl debug system/org.nixos.nix-daemon --environment \
NIX_GITHUB_PRIVATE_USERNAME=$NIX_GITHUB_PRIVATE_USERNAME \
NIX_GITHUB_PRIVATE_PASSWORD=$NIX_GITHUB_PRIVATE_PASSWORD
else
echo Unsupported system
exit 1
fi
- name: "download holo-nixpkgs tag"
run: |
Expand Down

0 comments on commit 08ac4b9

Please sign in to comment.