Skip to content

Commit 0d553b5

Browse files
authored
nioxs/etc: improve docs for file ownership (#378659)
2 parents 685f132 + 2442d7a commit 0d553b5

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

nixos/modules/system/etc/etc.nix

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,19 +194,29 @@ in
194194
default = "+${toString config.uid}";
195195
type = lib.types.str;
196196
description = ''
197-
User name of created file.
198-
Only takes effect when the file is copied (that is, the mode is not 'symlink').
199-
Changing this option takes precedence over `uid`.
197+
User name of file owner.
198+
199+
Only takes effect when the file is copied (that is, the
200+
mode is not `symlink`).
201+
202+
When `services.userborn.enable`, this option has no effect.
203+
You have to assign a `uid` instead. Otherwise this option
204+
takes precedence over `uid`.
200205
'';
201206
};
202207

203208
group = lib.mkOption {
204209
default = "+${toString config.gid}";
205210
type = lib.types.str;
206211
description = ''
207-
Group name of created file.
208-
Only takes effect when the file is copied (that is, the mode is not 'symlink').
209-
Changing this option takes precedence over `gid`.
212+
Group name of file owner.
213+
214+
Only takes effect when the file is copied (that is, the
215+
mode is not `symlink`).
216+
217+
When `services.userborn.enable`, this option has no effect.
218+
You have to assign a `gid` instead. Otherwise this option
219+
takes precedence over `gid`.
210220
'';
211221
};
212222

0 commit comments

Comments
 (0)