mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 22:30:25 +01:00
fix: attribute 'nix-access-tokens' missing for homelab
This commit is contained in:
@@ -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.
|
||||
# ---------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user