ryantm / agenix

age-encrypted secrets for NixOS and Home manager
https://matrix.to/#/#agenix:nixos.org
Creative Commons Zero v1.0 Universal
1.34k stars 108 forks source link

Can't change `mode` of secret file. #203

Closed TornaxO7 closed 9 months ago

TornaxO7 commented 9 months ago

Hello! I've the following in my nix config:

    age.secrets.wireguard = {
      file = ./wireguard.age;
      mode = "600";
    };

but I'm getting the following error message, if I'm rebuilding my system:

Sep 30 11:46:52 pc systemd-networkd[42602]: /nix/store/789542adibd9sj20hdxkdilh9amhwawl-source/secrets/wireguard.age has 0444 mode that is too permissive, please adjust the ownership and access mode.

what am I doing wrong?

TornaxO7 commented 9 months ago

nvm, I'm horribly stupid. I provided the wrong path to systemd-networkd...