summaryrefslogtreecommitdiff
path: root/nspawn/post-install.txt
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2025-12-22 19:30:59 -0600
committerBrad Clawsie <brad@b7j0c.org>2025-12-22 19:30:59 -0600
commitb2580b92b3c3b1fbe42a7d944b5962d3cd964f6e (patch)
tree2ad110448cb44d046ef85b144e973ffd291a83b9 /nspawn/post-install.txt
parent65edd7dde73233a71d022911649651cf183aaabe (diff)
perl nspawn
Diffstat (limited to 'nspawn/post-install.txt')
-rw-r--r--nspawn/post-install.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/nspawn/post-install.txt b/nspawn/post-install.txt
index e95b76f..a828ab5 100644
--- a/nspawn/post-install.txt
+++ b/nspawn/post-install.txt
@@ -1,5 +1,11 @@
-root passwd
-adduser brad
+# set root passwd
+systemd-nspawn -D /var/lib/machines/{$machine} /usr/bin/passwd
+pacman-key --init
+pacman-key --populate archlinux
+useradd -m -G wheel -s /usr/bin/fish brad
+passwd brad
echo 'brad ALL=(ALL) ALL' > /etc/sudoers.d/00_brad
-edit locale.gen
-sudo loginctl enable-linger brad
+edit locale.gen # https://wiki.archlinux.org/title/Locale
+systemctl --user enable ssh-agent.service
+systemctl --user start ssh-agent.service
+loginctl enable-linger brad