Changed name of binary

This commit is contained in:
Kristian Krsnik 2023-10-13 13:56:55 +02:00
parent e52d86b364
commit 994481e7fe
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85
3 changed files with 5 additions and 13 deletions

View File

@ -13,15 +13,15 @@
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
in {
# Formatter
# `nix fmt`
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
# Packages
# `nix build`
packages = forAllSystems (system: {
default = pkgs.${system}.poetry2nix.mkPoetryApplication {projectDir = self;};
});
# Dev Shell
# `nix develop`
devShells = forAllSystems (system: {
default = pkgs.${system}.mkShellNoCC {
packages = with pkgs.${system}; [
@ -33,14 +33,6 @@
};
});
# Run as apps
apps = forAllSystems (system: {
default = {
program = "${self.packages.${system}.default}/bin/outage_detector";
type = "app";
};
});
# TODO: Home Manager Module
# homeManagerModules.default = import ./nix/hm-module.nix self;

View File

@ -43,7 +43,7 @@ in {
systemd.services.outage-detector = mkIf (cfg.timer
!= null) {
script = "${package}/bin/outage_detector log ${cfg.settings.logFile} --host ${cfg.settings.host} --timeout ${toString cfg.settings.timeout}";
script = "${package}/bin/outage-detector log ${cfg.settings.logFile} --host ${cfg.settings.host} --timeout ${toString cfg.settings.timeout}";
serviceConfig = {
Type = "oneshot";

View File

@ -11,7 +11,7 @@ python = "^3.10"
requests = "2.29.0"
[tool.poetry.scripts]
outage_detector = "outage_detector.main:main"
outage-detector = "outage_detector.main:main"
[build-system]
requires = ["poetry-core"]