user: add defaultText for uid and gid

This commit is contained in:
Tobias Happ 2022-10-26 11:23:12 +02:00
parent 4ca0fc01e4
commit 8687e3d6da

View file

@ -1,4 +1,4 @@
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE. # Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
@ -35,6 +35,7 @@ in
gid = mkOption { gid = mkOption {
type = types.int; type = types.int;
default = ids.gid; default = ids.gid;
defaultText = "$(id -g)";
description = '' description = ''
Gid. This value should not be set manually except you know what you are doing. Gid. This value should not be set manually except you know what you are doing.
''; '';
@ -61,6 +62,7 @@ in
uid = mkOption { uid = mkOption {
type = types.int; type = types.int;
default = ids.uid; default = ids.uid;
defaultText = "$(id -u)";
description = '' description = ''
Uid. This value should not be set manually except you know what you are doing. Uid. This value should not be set manually except you know what you are doing.
''; '';