From 343ab84f42e7700a6ae49698b1d241f4976ac192 Mon Sep 17 00:00:00 2001 From: Daanish Syed Date: Thu, 2 Jul 2026 21:46:57 +0100 Subject: [PATCH] Add secrets file configuration to nix --- nixos/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index fc15434..23173e2 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -60,6 +60,13 @@ git ]; + # Secrets file + sops.age.keyFile = "/home/me/.config/sops/age/keys.txt"; + sops.secrets."main.env" = { + sopsFile = ../secrets/main.env; + format = "dotenv"; + }; + # Enable the OpenSSH daemon. services.openssh.enable = true;