Skip to content

Commit 9558240

Browse files
authored
Merge pull request #4969 from input-output-hk/newhoggy/cardano-node-service-socket-conf
Add socketGroup option to cardano-node-service
2 parents 71520c3 + 53042eb commit 9558240

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: nix/nixos/cardano-node-service.nix

+11-1
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,16 @@ in {
359359
'';
360360
};
361361

362+
socketGroup = mkOption {
363+
type = types.str;
364+
default = "cardano-node";
365+
description = ''
366+
systemd socket group owner.
367+
Note: only applies to sockets created by systemd
368+
(ie. when `systemdSocketActivation` is turned on).
369+
'';
370+
};
371+
362372
systemdSocketActivation = mkOption {
363373
type = types.bool;
364374
default = false;
@@ -678,7 +688,7 @@ in {
678688
ReusePort = "yes";
679689
SocketMode = "0660";
680690
SocketUser = "cardano-node";
681-
SocketGroup = "cardano-node";
691+
SocketGroup = cfg.socketGroup;
682692
FreeBind = "yes";
683693
};
684694
} (cfg.extraSocketConfig i)));

0 commit comments

Comments
 (0)