From c17184a3122e3b76fece54eb9c841b7b16a5dcd4 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Tue, 17 Mar 2026 18:37:46 +0100 Subject: [PATCH] refactor: centralize sops-nix configuration in common module --- modules/common/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/common/default.nix b/modules/common/default.nix index 44309f5..e27b6fc 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -1,8 +1,13 @@ { + imports = [ + ./substituters.nix + ]; + config = { homelab = { services.openssh.enable = true; users.admin.enable = true; + common.substituters.enable = true; }; nix.settings.experimental-features = [ @@ -12,5 +17,10 @@ # Set your time zone. time.timeZone = "Europe/Brussels"; + + sops = { + defaultSopsFile = ../../secrets/secrets.yaml; + age.keyFile = "/var/lib/sops-nix/key.txt"; + }; }; }