Skip to content

Commit

Permalink
fix(garuda-build): Continue cleanup effort
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTNE committed Dec 10, 2024
1 parent d6ebc4a commit e7a243b
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 40 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
## Quick links

- [Common maintenance tasks](https://docs.garudalinux.net/common)
- [Host: garuda-build](./hosts/garuda-build.md)
- [Host: garuda-mail](https://docs.garudalinux.net/hosts/garuda-mail)
- [Host: immortalis](https://docs.garudalinux.net/hosts/immortalis)

Expand Down
1 change: 0 additions & 1 deletion docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
- [mongodb](./nixos-containers/mongodb.md)
- [postgres](./nixos-containers/postgres.md)
- [web-front](./nixos-containers/web-front.md)
- [garuda-build](./hosts/garuda-build.md)
- [garuda-mail](./hosts/garuda-mail.md)

# Repository infrastructure
Expand Down
2 changes: 0 additions & 2 deletions docs/src/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ A general overview of the folder structure can be found below:
│ └── fonts
├── home-manager
├── host_vars
│ ├── garuda-build
│ ├── garuda-mail
│ └── immortalis
├── nixos
Expand All @@ -26,7 +25,6 @@ A general overview of the folder structure can be found below:
│ │ ├── docker
│ │ │ └── configs
│ │ ├── docker-proxied
│ │ ├── garuda-build
│ │ ├── garuda-mail
│ │ ├── github-runner
│ │ └── immortalis
Expand Down
26 changes: 0 additions & 26 deletions docs/src/hosts/garuda-build.md

This file was deleted.

9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,20 @@
ansible-playbook playbooks/system_update.yml
'';
}
{
name = "restart";
help = "Restarts all physical servers";
command = ''
ansible-playbook playbooks/reboot.yml
'';
}
{
name = "update-forum";
help = "Updates the Discourse container of our forum";
category = "infra-nix";
command = ''
# We are assuming the NixOS user is named the same as the one using it
ssh -p224 ${immortalis} "cd /var/disourse; sudo ./launcher rebuild app"
ssh -p224 ${immortalis} "cd /var/discourse; sudo ./launcher rebuild app"
'';
}
{
Expand Down
5 changes: 0 additions & 5 deletions host_vars/garuda-build/garuda-build.yml

This file was deleted.

1 change: 0 additions & 1 deletion hosts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ sftp_enabled = true

[nix]
immortalis
garuda-build
garuda-mail
1 change: 0 additions & 1 deletion nixos/hosts/chaotic-v4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN47/usTQsbmcAuG8CbEkurMDzQJxs+Tf8njI/4iTpKu"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN7W5KtNH5nsjIHBN1zBwEc0BZMhg6HfFurMIJoWf39p"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDD2ulefvEwwft9gXj2oUgRl0zWKjG2wkg4xHP1F2p8I" # garuda-build
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICwGMzxuAXAHc+DHbOlgRo/FShbF/QXrlJzhl2k/WBHB" # [email protected]
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDHELhrMFNvxgAYMdzwerszypuvQc3uCFjkR6xCbcQnrcCrueJqTQ4y8WzddwxhRzKbSTQVhPdB5l95IYk7eOtmBmaMp4LAV2osMWDI/x3NyoY5s7YgpW815qNX9Io7VnrFUr0LK7hJ+Uw87nyxGp3zGddPVMUK7PIdJf2GxTxKPryycdLa9QWijfm3YBdN10yBMp6KrfPEnhtmNPMrc3wuBG4+xBoJxNOy0DJdIf2PRwU2CddP0zdDWwlMbGeHGcaJmlAx0u9e1jL8KWB/oyGT1D9q4l+fU8E9nZG+kAFMO1yG25je9bJnYNPMV1gdRT47G3J/B982XYO4G4AiOER0v0M0MN0qWTvIVBG6Vnly81ME91Qao34Lw2QOhZMVFwWz01u8KLLQy/Z2rX7jKyqeUyGXgs5NPmkeJ1vzpSRLXY+5GX5yva8A041Nft7sfKYPFjMsDaxAKVPz7LkKX1dYdiC4c3a/RcCzLKY+Uabjr0QAK4MKwmMW+SNF0QHr9mk= root@Chaotic" # CatBuilder
];
Expand Down
2 changes: 1 addition & 1 deletion playbooks/garbage_collect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
gather_facts: false
tasks:
- name: Collect garbage
ansible.builtin.shell: systemctl start --wait nix-clean-result.service && nix-collect-garbage -d
ansible.builtin.shell: nh clean all
changed_when: false
2 changes: 1 addition & 1 deletion playbooks/system_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
become: true
tasks:
- name: Update nix flake and push to cachix
ansible.builtin.shell: set -o pipefail;
ansible.builtin.shell: set -euo pipefail;
nix flake update && export CACHIX_AUTH_TOKEN="$(<"/var/garuda/secrets/cachix")" && nix flake archive --json | jq -r '.inputs|to_entries[].value.path'
| cachix push garuda-linux && nix-store -qR --include-outputs $(nix-store -qd $(nix build --cores 24 '.#nixosConfigurations."cachix".config.cachix' --json | jq -r
'.[].outputs | to_entries[].value')) | grep -v '\.drv$' | cachix push garuda-linux
Expand Down

0 comments on commit e7a243b

Please sign in to comment.