aynish-nixos #3
Loading…
Reference in a new issue
No description provided.
Delete branch "aynish/capsul-images:aynish-nixos"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Packer setup for KVM / NixOS. The capsul-init bit hasn't been tested yet, so it may need re-working.
trigger-reboot
script which returns exit 0 before rebooting 233cbc5745@ -0,0 +5,4 @@
mkdir -p "$homedir/.ssh"
chmod 700 "$homedir/.ssh"
chown "$user" "$homedir/.ssh"
probably change to
chown -R "$user:$user" "$homedir"
, it'd set user + group perms plus it'd set homedir perms too in case that's missing.@ -0,0 +27,4 @@
# we always want git and vim
environment.systemPackages = with pkgs; [
git
nonblocking: i don't think we want git installed in the default image, especially since it drags in a bunch of perl stuff. maybe best to leave this out? up to you.
@ -0,0 +30,4 @@
"inline": ["echo 'executing trigger-reboot...' && /tmp/trigger-reboot & exit 0"],
"expect_disconnect": true
},
{
moar tabs snuck in
@ -0,0 +45,4 @@
"inline": [
"mv /tmp/capsul-init /root/capsul-init",
"chmod +x /root/capsul-init"
]
looks like some tabs snuck in here
@ -0,0 +1,4 @@
#!/bin/sh
probably want
set -u
since this script won't work without arg1