Add agenix to thingvellir
This commit is contained in:
@@ -60,11 +60,6 @@ sudo parted /dev/vda -- mkpart primary 1MiB -8GiB
|
|||||||
#+BEGIN_SRC bash
|
#+BEGIN_SRC bash
|
||||||
sudo parted /dev/vda -- mkpart primary linux-swap -8GiB 100%
|
sudo parted /dev/vda -- mkpart primary linux-swap -8GiB 100%
|
||||||
#+END_SRC
|
#+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
|
* Format the partitions
|
||||||
1. Root partition
|
1. Root partition
|
||||||
#+BEGIN_SRC bash
|
#+BEGIN_SRC bash
|
||||||
@@ -105,7 +100,7 @@ sudo nixos-install --impure --root /mnt --flake '.#reykjavik'
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Copy the ssh deploy key (again)
|
* Copy the ssh deploy key (again)
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
cp /etc/ssh/samfelag_agenix* /mnt/etc/ssh
|
cp ~/.ssh/id_<hostname> /mnt/home/marc/.ssh/id_<hostname>
|
||||||
#+end_src
|
#+end_src
|
||||||
* Set up the user
|
* 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:
|
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";
|
device = "/dev/vda";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# - Agenix ---------------------------------
|
||||||
|
|
||||||
|
age.identityPaths = [
|
||||||
|
"/home/marc/.ssh/id_ed25519"
|
||||||
|
];
|
||||||
|
|
||||||
# - Modules ------------------------------------
|
# - Modules ------------------------------------
|
||||||
|
|
||||||
samfelag.modules = {
|
samfelag.modules = {
|
||||||
|
|||||||
Reference in New Issue
Block a user