We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e78364 commit 30fe340Copy full SHA for 30fe340
modules/geth/default.nix
@@ -122,7 +122,10 @@ in {
122
serviceConfig = mkMerge [
123
baseServiceConfig
124
{
125
- User = mkDefault serviceName;
+ User =
126
+ if cfg.user != null
127
+ then cfg.user
128
+ else mkDefault serviceName;
129
StateDirectory = mkDefault serviceName;
130
ExecStart = mkDefault "${cfg.package}/bin/geth ${scriptArgs}";
131
}
modules/geth/options.nix
@@ -9,6 +9,12 @@
9
options = rec {
10
enable = mkEnableOption "Go Ethereum Node";
11
12
+ user = mkOption {
13
+ type = types.nullOr types.str;
14
+ default = null;
15
+ description = "User to run the service as.";
16
+ };
17
+
18
inherit args;
19
20
extraArgs = mkOption {
0 commit comments