Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Apr 21, 2024
1 parent 7e346c3 commit 2909041
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
aws-region: eu-north-1
role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT_ID }}:role/upload-ami
- run: nix build ${{ env.FLAKE_REF }}#legacyAmazonImage
- run: file="$(jq '.file' < ./result/nix-support/image-info.json)"
- run: nix run --inputs-from ${{ env.FLAKE_REF }} nixpkgs#coldsnap -- upload --no-progress "$file"
- run: |
file="$(jq '.file' < ./result/nix-support/image-info.json)"
nix run --inputs-from ${{ env.FLAKE_REF }} nixpkgs#coldsnap -- upload --no-progress "$file"
5 changes: 3 additions & 2 deletions modules/amazon-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ in
"format": "raw",
"label": "${config.system.nixos.label}",
"system": "${pkgs.stdenv.hostPlatform.system}",
"file": "${config.image.repart.imageFile}"
"file": "${config.system.build.image}/${config.image.repart.imageFile}"
}
EOF
'';

image.repart.name = "${config.system.nixos.distroId}-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}";
image.repart.name = config.system.nixos.distroId;
image.repart.version = config.system.nixos.version;
image.repart.partitions = {
"00-esp" = {
contents = {
Expand Down

0 comments on commit 2909041

Please sign in to comment.