microbin works
This commit is contained in:
parent
27138bdc7d
commit
41a64a3248
|
@ -25,6 +25,17 @@ in
|
||||||
description = "Group account under which microbin runs.";
|
description = "Group account under which microbin runs.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hostname = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "Hostname of your microbin service";
|
||||||
|
};
|
||||||
|
|
||||||
|
port = mkOption {
|
||||||
|
type = types.port;
|
||||||
|
default = 8080;
|
||||||
|
description = "Port on which to run the serice";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,18 +45,17 @@ in
|
||||||
after = [ "remote-fs.target" "network.target" ];
|
after = [ "remote-fs.target" "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.microbin}/bin/microbin --port ${cfg.port} \\
|
ExecStart = ''${pkgs.microbin}/bin/microbin --port ${builtins.toString cfg.port}
|
||||||
--public-path ${cfg.hostname} \\
|
--public-path ${cfg.hostname}
|
||||||
--editable \\
|
--editable
|
||||||
--enable-burn-after \\
|
--enable-burn-after
|
||||||
--private \\
|
--private
|
||||||
--qr \\
|
--qr
|
||||||
--title=sealight \\
|
--title=sealight
|
||||||
--highlightsyntax";
|
--highlightsyntax'';
|
||||||
WorkingDirectory = dataFolder;
|
WorkingDirectory = dataFolder;
|
||||||
TimeoutStopSec = " 20 ";
|
TimeoutStopSec = " 20 ";
|
||||||
KillMode = " process ";
|
KillMode = " process ";
|
||||||
Restart = " on-failure ";
|
|
||||||
RestartSec = " 10 ";
|
RestartSec = " 10 ";
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
|
|
Loading…
Reference in a new issue