docs: fix highlighting in code block

This commit is contained in:
Michael Hoang
2025-07-07 13:30:00 +10:00
parent a91756d54a
commit 587db8510d

View File

@@ -1,30 +1,31 @@
## Usage ## Usage
``` ```nix
inventory.instances = { {
inventory.instances = {
# Deploy user alice on all machines. Don't prompt for password (will be # Deploy user alice on all machines. Don't prompt for password (will be
# auto-generated). # auto-generated).
user-alice = {
user-alice = { module = {
module = { name = "users";
name = "users"; input = "clan";
input = "clan"; };
roles.default.tags.all = { };
roles.default.settings = {
user = "alice";
prompt = false;
};
}; };
roles.default.tags.all = { };
roles.default.settings = { # Deploy user bob only on his laptop. Prompt for a password.
user = "alice"; user-bob = {
prompt = false; module = {
name = "users";
input = "clan";
};
roles.default.machines.bobs-laptop = { };
roles.default.settings.user = "bob";
}; };
}; };
}
# Deploy user bob only on his laptop. Prompt for a password.
user-bob = {
module = {
name = "users";
input = "clan";
};
roles.default.machines.bobs-laptop = { };
roles.default.settings.user = "bob";
};
``` ```