dotfiles/modules/secrets.nix

20 lines
499 B
Nix
Raw Normal View History

{agenix
,proj_root}: {
2022-12-27 04:22:07 +00:00
imports = [
agenix.nixosModule
];
age.secrets.s3fs = {
2022-12-27 04:22:07 +00:00
file = "${proj_root.secrets.path}/s3fs.age";
# mode = "600"; # owner + group only
# owner = "hungtr";
# group = "users";
};
age.secrets."s3fs.digital-garden" = {
2022-12-27 04:22:07 +00:00
file = "${proj_root.secrets.path}/s3fs.digital-garden.age";
};
age.secrets._nhitrl_cred = {
2022-12-27 04:22:07 +00:00
file = "${proj_root.secrets.path}/_nhitrl.age";
};
environment.systemPackages = [agenix.defaultPackage.x86_64-linux];
}