Skip to content

Commit 4e0cdf6

Browse files
committed
add starbuck nixos host
1 parent 6a62ea4 commit 4e0cdf6

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ $ nix --extra-experimental-features 'flakes nix-command' run nix-darwin -- swit
1717
Generate SD card image
1818

1919
```shell
20-
$ nix build .#nixosConfigurations.adama.config.system.build.sdImage
21-
$ unzstd result/sd-image/nixos-sd-image-24.05.20240706.49ee0e9-aarch64-linux.img.zst -o x.img
20+
$ task nixos:sd host=adama
2221
```
2322

24-
Flash SD card or USB stick with `x.img` using [Raspberry Pi Imager](https://www.raspberrypi.com/software/), put in RPi and start attached to network.
23+
Flash SD card or USB stick with `sd.img` using [Raspberry Pi Imager](https://www.raspberrypi.com/software/), put in RPi and start attached to network.
2524

2625
Grab new ssh host key.
2726

Taskfile.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ tasks:
5252
command: switch
5353
args: --fast --use-remote-sudo --target-host {{.host}} {{.CLI_ARGS}}
5454

55+
nixos:sd:
56+
requires:
57+
vars:
58+
- host
59+
cmds:
60+
- nix build .#nixosConfigurations.{{.host}}.config.system.build.sdImage
61+
- unzstd result/sd-image/nixos-sd-image-*-linux.img.zst -o sd.img
62+
5563
fmt:
5664
cmds:
5765
- statix fix

nixos-configurations/starbuck.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{ ezModules, ... }:
2+
3+
{
4+
imports = [
5+
ezModules.hardware-rpi5
6+
ezModules.sshd
7+
ezModules.user-peteresselius
8+
];
9+
10+
nixpkgs.hostPlatform = "aarch64-linux";
11+
12+
system.stateVersion = "24.05";
13+
14+
context = "home";
15+
formfactor = "server";
16+
}

0 commit comments

Comments
 (0)