Skip to content

Commit

Permalink
docs/src/modules/examples: fix user example
Browse files Browse the repository at this point in the history
  • Loading branch information
yunfachi committed Sep 29, 2024
1 parent 60417e2 commit 347ddef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 0 additions & 2 deletions docs/src/modules/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ delib.module {
inherit (myconfig.constants) username;
in {
users = {
groups.${username} = {};
users.${username} = {
isNormalUser = true;
initialPassword = username;
Expand Down
12 changes: 4 additions & 8 deletions docs/src/ru/modules/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
delib.module {
name = "constants";
options = {
constants = with delib; {
username = readOnly (strOption "sjohn");
userfullname = readOnly (strOption "John Smith");
useremail = readOnly (strOption "[email protected]");
};
options.constants = with delib; {
username = readOnly (strOption "sjohn");
userfullname = readOnly (strOption "John Smith");
useremail = readOnly (strOption "[email protected]");
};
}
```
Expand Down Expand Up @@ -109,8 +107,6 @@ delib.module {
inherit (myconfig.constants) username;
in {
users = {
groups.${username} = {};
users.${username} = {
isNormalUser = true;
initialPassword = username;
Expand Down

0 comments on commit 347ddef

Please sign in to comment.