_file solution and funny function arg reading

This commit is contained in:
Gerg-L 2024-06-12 23:05:45 -04:00
parent 6432f7b69e
commit e1a0456ee0
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
32 changed files with 70 additions and 107 deletions

View file

@ -1,12 +1,9 @@
{
sops-nix,
self,
_file,
}:
{
pkgs,
config,
lib,
sops-nix,
self',
...
}:
{
@ -15,9 +12,8 @@
config = lib.mkIf (!config.local.sops.disable) {
environment.systemPackages = [ pkgs.sops ];
sops = {
defaultSopsFile = "${self}/hosts/${config.networking.hostName}/secrets.yaml";
defaultSopsFile = "${self'}/hosts/${config.networking.hostName}/secrets.yaml";
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
};
};
inherit _file;
}