fix(module): update socket group, config file path, and start command

Signed-off-by: Adam Rizkalla <ajarizzo@gmail.com>
This commit is contained in:
Adam Rizkalla
2025-03-01 22:37:31 +00:00
committed by Steffen Vogel
parent bbc07477b2
commit e073af34ab
2 changed files with 4 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ backends:
rpc:
# Path to a Unix socket for management
# and monitoring of the cunicu daemon.
# Leave empty or set to "systemd" to use systemd socket.
socket: /run/cunicu.sock
# Start of cunīcu daemon will block until

View File

@@ -78,7 +78,7 @@ in
groups.cunicu = { };
};
environment.etc."cunicu.yaml" = {
environment.etc."cunicu/cunicu.yaml" = {
source = settingsFormat.generate "cunicu.yaml" cfg.daemon.settings;
};
@@ -101,7 +101,7 @@ in
serviceConfig = {
Type = "notify-reload";
ExecStart = "${lib.getExe cfg.package} daemon --log-level 10";
ExecStart = "${lib.getExe cfg.package} daemon --log-level debug10 --config /etc/cunicu/cunicu.yaml";
DynamicUser = true;
NotifyAccess = "main";
@@ -236,7 +236,7 @@ in
FileDescriptorName = "control";
ListenStream = "%t/cunicu.sock";
SocketUser = "root";
SocketGroup = "root";
SocketGroup = "cunicu";
SocketMode = "0660";
RemoveOnStop = true;
};