fix: attribute 'nix-access-tokens' missing for homelab

This commit is contained in:
Ryan Yin
2025-02-27 22:46:37 +08:00
parent 417d7ad2d7
commit cfdf12b356
5 changed files with 25 additions and 13 deletions

View File

@@ -66,6 +66,16 @@ in {
"/etc/ssh/ssh_host_ed25519_key"
];
# secrets that are used by all nixos hosts
age.secrets = {
"nix-access-tokens" =
{
file = "${mysecrets}/nix-access-tokens.age";
}
# access-token needs to be readable by the user running the `nix` command
// user_readable;
};
assertions = [
{
# This expression should be true to pass the assertion
@@ -112,13 +122,6 @@ in {
}
// high_security;
"nix-access-tokens" =
{
file = "${mysecrets}/nix-access-tokens.age";
}
# access-token needs to be readable by the user running the `nix` command
// user_readable;
# ---------------------------------------------
# user can read this file.
# ---------------------------------------------