Commit 38bec72 1 parent 11fc752 commit 38bec72 Copy full SHA for 38bec72
File tree 3 files changed +22
-3
lines changed
3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ Deployment configuration contained in `./deploy`
38
38
- build the image: ` nix build .#nixosConfigurations.rpi5.config.system.build.sdImage `
39
39
- decompress (to ` rpi-image ` ): ` zstd --decompress result/sd-image/nixos-sd-image-24.11.20240529.ad57eef-aarch64-linux.img.zst -o rpi-image `
40
40
- use ` dd ` to write the image to an sd card: ` sudo dd if=rpi-image of=/dev/sdX bs=4M `
41
+ - remotely apply nixos-configuration: ` nixos-rebuild switch --flake .#rpi5 --target-host rpi5 `
41
42
42
43
## terraform
43
44
Original file line number Diff line number Diff line change @@ -8,5 +8,24 @@ inputs: {
8
8
inputs . raspberry-pi-nix . nixosModules . raspberry-pi
9
9
] ;
10
10
environment . systemPackages = [ inputs . self . packages . aarch64-linux . neovim ] ;
11
- users . users . root . openssh . authorizedKeys . keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL1Uj62/yt8juK3rSfrVuX/Ut+xzw1Z75KZS/7fOLm6l" ] ;
11
+ justinrubek = {
12
+ administration . enable = true ;
13
+ tailscale . enable = true ;
14
+ } ;
15
+ networking . firewall = {
16
+ allowedTCPPorts = [ 22 ] ;
17
+ interfaces . ${ config . services . tailscale . interfaceName } = {
18
+ allowedTCPPorts = [ 22 ] ;
19
+ } ;
20
+ } ;
21
+ users . users = {
22
+ justin = {
23
+ isNormalUser = true ;
24
+ description = "Justin" ;
25
+ extraGroups = [ "networkmanager" "wheel" "docker" "input" "systemd-journal" ] ;
26
+ shell = pkgs . bashInteractive ;
27
+ openssh . authorizedKeys . keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL1Uj62/yt8juK3rSfrVuX/Ut+xzw1Z75KZS/7fOLm6l" ] ;
28
+ } ;
29
+ root . openssh . authorizedKeys . keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL1Uj62/yt8juK3rSfrVuX/Ut+xzw1Z75KZS/7fOLm6l" ] ;
30
+ } ;
12
31
}
Original file line number Diff line number Diff line change 13
13
} ;
14
14
15
15
config = lib . mkIf cfg . enable {
16
- # provide the `admin` user
17
16
users . users . admin = {
18
17
name = "admin" ;
19
18
isNormalUser = true ;
20
19
extraGroups = [ "wheel" ] ;
21
20
22
21
openssh . authorizedKeys . keys = [
23
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCsUQZGQOH2kmQNeG/Ezmsv6A/70JUO8nLh9WaZ/o7DlmpYeEyUdloTazxpP9FjuRv7d7nzRqtQFOF74TBaDEAxR9/eHxX9zc5RfyE1RYeGWPGgnuHpxoTijh70ncTlU6sr0oqP7e24qeIy7pqWKQmV8RDOkr2etbnb5OpCHEsZJ0l0sPYQpYi0Ud8cM/HFCCVPeg21wVuxBX2rA4ze8+YgnPJZRnhtHZg7rAapvhiIfDAJ3xIweauCoz0vZdmANlUsg2AoOx9b2Ym6rGNmRrJUNZYcsNxmUHc1/oc1g9NZ7GoaMhfw0BHVJ0kyfE2glpJX9iu6WHWjbL+XM0QnCFrc3hbQc41zYQsMHcY/N/P5MW9Gj77Q9P/qRDbwlVOdoFw1bUpIoMgsJ95o5gv5mClHuBLZD3ZO5cyRfnjH4w0pt6EnWtbkORsT5A7ULOQOG8AOuBL3ok/yVTVAFV2yMbaEg1BM2By0U6hn9M6SGWuOiM1oMwvVFJWdmZsvPeTZqaU= justin "
22
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL1Uj62/yt8juK3rSfrVuX/Ut+xzw1Z75KZS/7fOLm6l "
24
23
] ;
25
24
} ;
26
25
You can’t perform that action at this time.
0 commit comments