Skip to content

Commit

Permalink
Upload generated ISO artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek committed Oct 12, 2024
1 parent 58023e1 commit f25753a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
- name: Build .#minimal-iso
run: |
nix build .#minimal-iso
- name: Upload ISO
uses: actions/upload-artifact@v4
with:
name: nixoss.iso
path: ./result/iso/nixos.iso

minimal-install-iso:
runs-on: ubuntu-latest
Expand All @@ -26,3 +31,8 @@ jobs:
- name: Build .#minimal-install-iso
run: |
nix build .#minimal-install-iso
- name: Upload ISO
uses: actions/upload-artifact@v4
with:
name: nixoss.iso
path: ./result/iso/*.iso
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $ sudo shutdown -r now

### Clawsiecats
A configuration optimized for limited compute availability, supposed to be deployed on VPS machines.
It hosts routing services, VPN, some other useful stuff.
It hosts routing services, tailscale, some other useful stuff.

Uncomment the disko partioning configuration that should be used in [flake.nix](/flake.nix) under the
variant before deployment. Supports MBR, GPT, GPT+LUKS. I haven't gotten MBR+LUKS working yet.
Expand All @@ -53,7 +53,7 @@ Looks to work fine on the most minimal [Vultr](https://www.vultr.com/) configura

**Deployment Steps**

1. Replace your SSH public keys in [minimal-iso.nix](/generators/minimal-iso.nix).
1. Replace your SSH public keys in [minimal.nix](/generators/minimal.nix).

2. Build the minimal ISO:
```bash
Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,13 @@

minimal-iso = nixos-generators.nixosGenerate {
system = "x86_64-linux";
modules = [ ./generators/minimal-iso.nix ];
modules = [ ./generators/minimal.nix ];
format = "iso";
};

minimal-install-iso = nixos-generators.nixosGenerate {
system = "x86_64-linux";
modules = [ ./generators/minimal-iso.nix ];
modules = [ ./generators/minimal.nix ];
format = "install-iso";
};
};
Expand Down
2 changes: 1 addition & 1 deletion generators/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```
$ nix build .#minimal-iso
$ nix build '.#minimal-iso'
```
2 changes: 1 addition & 1 deletion generators/minimal-iso.nix → generators/minimal.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
networking.hostName = "minimal-iso";
networking.hostName = "minimal";

# Helpful for tinkering within the installation environment.
# fileSystems."/root" = {
Expand Down
2 changes: 1 addition & 1 deletion machines/clawsiecats/anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ systemd-machine-id-setup --root="$BASEDIR"/nix/persist/system/

# Host SSH keys; also used by sops-nix for decrypting secrets.
install -d -m755 "$BASEDIR"/nix/persist/system/etc/ssh/
, sops decrypt ./machines/secrets.yaml \
nix run nixpkgs#sops -- decrypt ./machines/secrets.yaml \
--extract '["clawsiecats_ssh_host_ed25519_key"]' \
--output "$BASEDIR"/nix/persist/system/etc/ssh/ssh_host_ed25519_key
chmod 600 "$BASEDIR"/nix/persist/system/etc/ssh/ssh_host_ed25519_key
Expand Down

0 comments on commit f25753a

Please sign in to comment.