Skip to content

Commit

Permalink
fix: cut down the size of nix store prior to release of AMI
Browse files Browse the repository at this point in the history
by running nix-collect-garbage -d which should remove items
not in use by installed packages
  • Loading branch information
Sam Rose committed Aug 11, 2024
1 parent 255df88 commit 02e4ff4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,9 @@
shell: |
sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile remove osquery"
when: stage2_nix

- name: nix collect garbage
become: yes
shell: |
sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix-collect-garbage -d"
when: stage2_nix
2 changes: 1 addition & 1 deletion common-nix.vars.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
postgres-version = "15.6.1.109-rc1"
postgres-version = "15.6.1.109-rc2"

0 comments on commit 02e4ff4

Please sign in to comment.