mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
user: add defaultText for uid and gid
This commit is contained in:
parent
4ca0fc01e4
commit
8687e3d6da
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue