module v3
This commit is contained in:
parent
a8822d7581
commit
3b732ba423
2 changed files with 18 additions and 19 deletions
|
|
@ -4,7 +4,7 @@ let
|
|||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
cfg = config.services.birdtown-visit-counter;
|
||||
inherit (lib) types mkOption mkIf;
|
||||
package = inputs.self.packages."${system}".birdtown-visit-counter;
|
||||
package = inputs.self.packages."${system}".default;
|
||||
in {
|
||||
options.services.birdtown-visit-counter = {
|
||||
enable = mkOption {
|
||||
|
|
@ -30,7 +30,7 @@ in {
|
|||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart =
|
||||
"${package}/bin/birdtown-visit-counter -addr :${cfg.listenPort} -file visits.json";
|
||||
"${package}/bin/birdtown-visit-counter -addr :${tostring cfg.listenPort} -file visits.json";
|
||||
User = "birdtown-visit-counter";
|
||||
Group = "birdtown-visit-counter";
|
||||
WorkingDirectory = "/var/lib/birdtown-visit-counter";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue