Skip to content

Commit 347ddef

Browse files
committed
docs/src/modules/examples: fix user example
1 parent 60417e2 commit 347ddef

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

docs/src/modules/examples.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ delib.module {
109109
inherit (myconfig.constants) username;
110110
in {
111111
users = {
112-
groups.${username} = {};
113-
114112
users.${username} = {
115113
isNormalUser = true;
116114
initialPassword = username;

docs/src/ru/modules/examples.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
delib.module {
66
name = "constants";
77
8-
options = {
9-
constants = with delib; {
10-
username = readOnly (strOption "sjohn");
11-
userfullname = readOnly (strOption "John Smith");
12-
useremail = readOnly (strOption "johnsmith@example.com");
13-
};
8+
options.constants = with delib; {
9+
username = readOnly (strOption "sjohn");
10+
userfullname = readOnly (strOption "John Smith");
11+
useremail = readOnly (strOption "johnsmith@example.com");
1412
};
1513
}
1614
```
@@ -109,8 +107,6 @@ delib.module {
109107
inherit (myconfig.constants) username;
110108
in {
111109
users = {
112-
groups.${username} = {};
113-
114110
users.${username} = {
115111
isNormalUser = true;
116112
initialPassword = username;

0 commit comments

Comments
 (0)