nixos/azure: clarify how users work in basic example

authored by colemickens.tngl.sh and committed by Jon 19927681 627ae7e0

+10
+7
nixos/maintainers/scripts/azure-new/README.md
··· 33 ... 34 => booted 35 ```
··· 33 ... 34 => booted 35 ``` 36 + 37 + ## Future Work 38 + 39 + 1. If the user specifies a hard-coded user, then the agent could be removed. 40 + Probably has security benefits; definitely has closure-size benefits. 41 + (It's likely the VM will need to be booted with a special flag. See: 42 + https://github.com/Azure/azure-cli/issues/12775 for details.)
+3
nixos/maintainers/scripts/azure-new/examples/basic/system.nix
··· 8 "${modulesPath}/virtualisation/azure-image.nix" 9 ]; 10 11 users.users."${username}" = { 12 isNormalUser = true; 13 home = "/home/${username}";
··· 8 "${modulesPath}/virtualisation/azure-image.nix" 9 ]; 10 11 + ## NOTE: This is just an example of how to hard-code a user. 12 + ## The normal Azure agent IS included and DOES provision a user based 13 + ## on the information passed at VM creation time. 14 users.users."${username}" = { 15 isNormalUser = true; 16 home = "/home/${username}";