diff --git a/hosts/cube.nix b/hosts/cube.nix index 0c4323b..aa08ac1 100644 --- a/hosts/cube.nix +++ b/hosts/cube.nix @@ -124,9 +124,12 @@ authKeyFile = config.sops.secrets.tailscale_auth_key.path; }; - sops.defaultSopsFile = ../secrets/secrets.yaml; - sops.age.keyFile = "/home/muhh/.config/sops/age/keys.txt"; - sops.secrets.tailscale_auth_key = {}; + sops = { + age.keyFile = "/home/muhh/.config/sops/age/keys.txt"; + defaultSopsFile = ../modules/sops/secrets/secrets.yaml; + secrets.tailscale_auth_key = {}; + }; + # Define a user account. Don't forget to set a password with ‘passwd’. users.users.muhh = { isNormalUser = true; diff --git a/justfile b/justfile index f78440c..44fbac5 100644 --- a/justfile +++ b/justfile @@ -1,4 +1,4 @@ -SOPS_FILE := "./secrets/secrets.yaml" +SOPS_FILE := "./modules/sops/secrets/secrets.yaml" default: @just --list diff --git a/modules/sops/default.nix b/modules/sops/default.nix index eb32e89..16edacc 100644 --- a/modules/sops/default.nix +++ b/modules/sops/default.nix @@ -21,7 +21,4 @@ tailscale_auth_key = {}; }; }; - - # sops.defaultSopsFile = ../modules/sops/secrets/secrets.yaml; - # sops.age.keyFile = "/home/muhh/.config/sops/age/keys.txt"; }