Skip to content

Commit

Permalink
Enhance flake configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dacr committed Nov 22, 2024
1 parent 1a89ac4 commit ecb678c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@
};
config = lib.mkIf config.services.web-echo.enable {
systemd.services.web-echo = {
serviceConfig.ExecStart = "${self.packages.${pkgs.system}.default}/bin/nix-web-echo";
description = "Record your json data coming from websockets or webhooks";
unitConfig = {
Type = "simple";
User = "web-echo";
};
serviceConfig = {
ExecStart = "${inputs.web-echo.packages.${system}.default}/bin/nix-web-echo";
};
wantedBy = [ "multi-user.target" ];
};
};
};
Expand Down

0 comments on commit ecb678c

Please sign in to comment.