aynish-nixos #3

Merged
j3s merged 30 commits from aynish/capsul-images:aynish-nixos into main 2022-07-18 22:35:09 +00:00
Collaborator

Packer setup for KVM / NixOS. The capsul-init bit hasn't been tested yet, so it may need re-working.

Packer setup for KVM / NixOS. The capsul-init bit hasn't been tested yet, so it may need re-working.
aynish added 10 commits 2022-07-17 15:21:07 +00:00
aynish added 1 commit 2022-07-17 15:59:24 +00:00
aynish added 3 commits 2022-07-18 07:29:38 +00:00
aynish added 1 commit 2022-07-18 08:43:49 +00:00
aynish added 2 commits 2022-07-18 13:48:44 +00:00
we have to move the script after the generation is built so it doesn't
run on rebuild and remove the script (the drive isn't mounted yet)
aynish added 1 commit 2022-07-18 13:52:58 +00:00
j3s approved these changes 2022-07-18 22:34:40 +00:00
@ -0,0 +5,4 @@
mkdir -p "$homedir/.ssh"
chmod 700 "$homedir/.ssh"
chown "$user" "$homedir/.ssh"
Owner

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.

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.
j3s marked this conversation as resolved
@ -0,0 +27,4 @@
# we always want git and vim
environment.systemPackages = with pkgs; [
git
Owner

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.

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.
j3s marked this conversation as resolved
@ -0,0 +30,4 @@
"inline": ["echo 'executing trigger-reboot...' && /tmp/trigger-reboot & exit 0"],
"expect_disconnect": true
},
{
Owner

moar tabs snuck in

moar tabs snuck in
j3s marked this conversation as resolved
@ -0,0 +45,4 @@
"inline": [
"mv /tmp/capsul-init /root/capsul-init",
"chmod +x /root/capsul-init"
]
Owner

looks like some tabs snuck in here

looks like some tabs snuck in here
j3s marked this conversation as resolved
@ -0,0 +1,4 @@
#!/bin/sh
Owner

probably want set -u since this script won't work without arg1

probably want `set -u` since this script won't work without arg1
j3s merged commit ccf2155a22 into main 2022-07-18 22:35:09 +00:00
Sign in to join this conversation.
No reviewers
j3s
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cyberia/capsul-images#3
No description provided.