agenix: use secrets in store

Rather than the local secrets, which won't be found if the remote has no
~/.config/dotfiles.
This commit is contained in:
Henrik Lissner 2021-03-03 22:23:50 -05:00
parent 9d90e3a822
commit 8a6bf347e9

View file

@ -6,7 +6,7 @@ with builtins;
with lib; with lib;
with lib.my; with lib.my;
let inherit (inputs) agenix; let inherit (inputs) agenix;
secretsDir = "${config.dotfiles.dir}/hosts/${config.networking.hostName}/secrets"; secretsDir = "${toString ../hosts}/${config.networking.hostName}/secrets";
secretsFile = "${secretsDir}/secrets.nix"; secretsFile = "${secretsDir}/secrets.nix";
in { in {
imports = [ agenix.nixosModules.age ]; imports = [ agenix.nixosModules.age ];