From 3f06ae0cb2298d0b39f32cbf38bd239bafce4134 Mon Sep 17 00:00:00 2001 From: marc Date: Mon, 12 Feb 2024 21:16:56 +0100 Subject: [PATCH] Add agenix to thingvellir --- docs/install.org | 7 +------ hosts/thingvellir/default.nix | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/install.org b/docs/install.org index 0aa0f8d..3572a49 100644 --- a/docs/install.org +++ b/docs/install.org @@ -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_ /mnt/home/marc/.ssh/id_ #+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: diff --git a/hosts/thingvellir/default.nix b/hosts/thingvellir/default.nix index f502fc2..9a5a4a9 100644 --- a/hosts/thingvellir/default.nix +++ b/hosts/thingvellir/default.nix @@ -22,6 +22,12 @@ with lib; device = "/dev/vda"; }; + # - Agenix --------------------------------- + + age.identityPaths = [ + "/home/marc/.ssh/id_ed25519" + ]; + # - Modules ------------------------------------ samfelag.modules = {