Add agenix to thingvellir
This commit is contained in:
@@ -60,11 +60,6 @@ sudo parted /dev/vda -- mkpart primary 1MiB -8GiB
|
||||
#+BEGIN_SRC bash
|
||||
sudo parted /dev/vda -- mkpart primary linux-swap -8GiB 100%
|
||||
#+END_SRC
|
||||
4. Create the boot partition
|
||||
#+BEGIN_SRC bash
|
||||
sudo parted /dev/vda -- mkpart ESP fat32 1MB 512MB
|
||||
sudo parted /dev/vda -- set 3 esp on
|
||||
#+END_SRC
|
||||
* Format the partitions
|
||||
1. Root partition
|
||||
#+BEGIN_SRC bash
|
||||
@@ -105,7 +100,7 @@ sudo nixos-install --impure --root /mnt --flake '.#reykjavik'
|
||||
#+END_SRC
|
||||
* Copy the ssh deploy key (again)
|
||||
#+begin_src bash
|
||||
cp /etc/ssh/samfelag_agenix* /mnt/etc/ssh
|
||||
cp ~/.ssh/id_<hostname> /mnt/home/marc/.ssh/id_<hostname>
|
||||
#+end_src
|
||||
* Set up the user
|
||||
You'll set the root password during the installation. You can then reboot and use the installed OS. First thing you'll have to do is log in as root and set the password for your user:
|
||||
|
||||
@@ -22,6 +22,12 @@ with lib;
|
||||
device = "/dev/vda";
|
||||
};
|
||||
|
||||
# - Agenix ---------------------------------
|
||||
|
||||
age.identityPaths = [
|
||||
"/home/marc/.ssh/id_ed25519"
|
||||
];
|
||||
|
||||
# - Modules ------------------------------------
|
||||
|
||||
samfelag.modules = {
|
||||
|
||||
Reference in New Issue
Block a user