mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 17:29:30 +08:00
12 lines
349 B
Nix
12 lines
349 B
Nix
inputs:
|
|
{
|
|
config = let inherit (inputs.config.nixos) user; in inputs.lib.mkIf (builtins.elem "zgq" user.users)
|
|
{
|
|
users.users = inputs.lib.mkIf (inputs.config.nixos.model.cluster.clusterName or null == "srv1")
|
|
{
|
|
zgq.extraGroups = [ "wheel" ];
|
|
root.openssh.authorizedKeys.keys = [(builtins.readFile ./keys/zgq)];
|
|
};
|
|
};
|
|
}
|