From 56eac5d1c4c040d11f2529a2460e4f8ec798e0e9 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Tue, 1 Aug 2023 12:10:35 +0200 Subject: [PATCH] feat: added mount points to secrets --- hosts/capibara.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/capibara.nix b/hosts/capibara.nix index 8a12f83..c761cc0 100644 --- a/hosts/capibara.nix +++ b/hosts/capibara.nix @@ -77,6 +77,18 @@ in neededForBoot = true; }; + "/mnt/secrets" = { + device = "narwhal:/secrets"; + fsType = "nfs"; + options = [ "noauto" ]; + }; + + "/mnt/secrets/gnupg" = { + device = "/dev/mapper/gnupg_secrets"; + fsType = "btrfs"; + options = [ "noauto" ]; + }; + "/nix" = { device = "/dev/mapper/root"; fsType = "btrfs"; @@ -129,6 +141,7 @@ in backups0 UUID="e45232d5-f46f-46f3-a150-be26374b3357" /etc/luks-keys/backups.bin noauto backups1 UUID="5b3da928-4862-4451-89cd-5bd6a95466d0" /etc/luks-keys/backups.bin noauto backups2 UUID="cbfa9cba-dee2-4d0b-8cde-2f1d1849b22c" /etc/luks-keys/backups.bin noauto + gnupg_secrets /mnt/secrets/gnupg.img none noauto ''; }; };