Changed name of binary
This commit is contained in:
parent
e52d86b364
commit
994481e7fe
14
flake.nix
14
flake.nix
@ -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;
|
||||
|
||||
|
@ -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";
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user