NiXium-org / NiXium

Open-Source Infrastructure as Code Management Solution for Multiple Systems designed to be reliable in mission-critical tasks on paranoid and high-security environment.
European Union Public License 1.2
25 stars 3 forks source link

HELP_WANTED: error: attribute 'age' missing #12

Closed Kreyren closed 6 months ago

Kreyren commented 7 months ago
├─ nixium on  onion-secrets via ❄️  impure (NiXium-devshell-env) 
╰───❯ nixos-rebuild switch --flake '.#pelagus'
building the system configuration...
error:
       … while calling the 'head' builtin

         at /nix/store/9fpv0kjq9a80isa1wkkvrdqsh9dpcn05-source/lib/attrsets.nix:922:11:

          921|         || pred here (elemAt values 1) (head values) then
          922|           head values
             |           ^
          923|         else

       … while evaluating the attribute 'value'

         at /nix/store/9fpv0kjq9a80isa1wkkvrdqsh9dpcn05-source/lib/modules.nix:807:9:

          806|     in warnDeprecation opt //
          807|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          808|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'age' missing

       at /nix/store/d01yixjig8cclax9sdkfzg2hvcgprh60-source/machines/mracek/default.nix:60:21:

           59|          services.tor.settings.MapAddress = [
           60|                  "mracek.nixium ${config.age.secrets.mracek-onion.path}" # Add Tor Alias
             |                     ^
           61|                  #"gitea.nixium ....onion" # Export Gitea
Kreyren commented 6 months ago

it's a problem with the scope of the evaluation.. this setup works if i put the configuration in a new file..