Skip to content
Discussion options

You must be logged in to vote

Got it to work !

Thx @AlexLov for the help !

One may think that the parameter's name will be nested as much as the aspect it, but it isn't the case !

This won't work :

{ den, ... }: {

  den.aspects.security.base.measured-boot = { lib, ... }: {

    settings.pcrs = lib.mkOption {
      type = lib.types.listOf (lib.types.enum [ 0 1 2 3 4 7 ]);
      default = [ 0 1 2 4 7 ];
      description = "Set PCRs used for measured boot";
    };

  };

  den.aspects.laptop.includes = [
    den.aspects.security.base.measured-boot
  ];

}

den.hosts.x86_64-linux.laptop = {

  settings.security.base.measured-boot.pcrs = [ 0 1 2 7 ];
  
  users = {
    me = { };
  };
  
};

But this will :

{ den, ... }: {
…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Babilinx
Comment options

@AlexLov
Comment options

Comment options

You must be logged in to vote
1 reply
@AlexLov
Comment options

Answer selected by Babilinx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants