From 7a041b8471d61070f1210d40f33b460a3b553d6d Mon Sep 17 00:00:00 2001 From: harry Date: Sun, 25 Aug 2024 12:21:32 +0200 Subject: [PATCH] fix secrets --- hosts/sisyphe/server-configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/sisyphe/server-configuration.nix b/hosts/sisyphe/server-configuration.nix index 2361cae..4759b0f 100644 --- a/hosts/sisyphe/server-configuration.nix +++ b/hosts/sisyphe/server-configuration.nix @@ -3,12 +3,14 @@ config, lib, pkgs, + inputs, ... }: let ip = "192.168.1.177"; gateway = "192.168.1.1"; username = "homelab"; + secrets = builtins.toString inputs.nix-secrets; in { # setting up networking!! @@ -61,5 +63,5 @@ in sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; sops.age.keyFile = "/var/lib/sops-nix/key.txt"; sops.age.generateKey = true; - sops.defaultSopsFile = ../../secrets/secrets.yaml; + sops.defaultSopsFile = "${secrets}/secrets/secrets.yaml"; }