How to apply users.myuser = {} within a non-host aspect?
#617
|
I'm using My users are declared globally as However, I want assign the user aspect on the aspect level and not on the host level, so I can include user aspects per default for certain host profiles. How to achieve this? (Note that I do not want to merely include the nixos user declaration, because that would bypass the whole user aspect logic.) I think I understood I could use parametric aspects for this in the |
Replies: 1 comment 2 replies
|
You can write a custom policy that associates users with hosts like this: |
You can write a custom policy that associates users with hosts like this:
https://github.com/denful/den/blob/main/templates/fleet-demo/modules/policies/fleet.nix#L82-L88