fix secrets

This commit is contained in:
Harry 2024-08-25 12:21:32 +02:00
parent 9afa07edfe
commit 7a041b8471

View file

@ -3,12 +3,14 @@
config, config,
lib, lib,
pkgs, pkgs,
inputs,
... ...
}: }:
let let
ip = "192.168.1.177"; ip = "192.168.1.177";
gateway = "192.168.1.1"; gateway = "192.168.1.1";
username = "homelab"; username = "homelab";
secrets = builtins.toString inputs.nix-secrets;
in in
{ {
# setting up networking!! # setting up networking!!
@ -61,5 +63,5 @@ in
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
sops.age.keyFile = "/var/lib/sops-nix/key.txt"; sops.age.keyFile = "/var/lib/sops-nix/key.txt";
sops.age.generateKey = true; sops.age.generateKey = true;
sops.defaultSopsFile = ../../secrets/secrets.yaml; sops.defaultSopsFile = "${secrets}/secrets/secrets.yaml";
} }