diff --git a/flake.nix b/flake.nix index 572c766..b7bcf03 100644 --- a/flake.nix +++ b/flake.nix @@ -21,14 +21,6 @@ default = pkgs.${system}.poetry2nix.mkPoetryApplication {projectDir = self;}; }); - # `nix run` - apps = forAllSystems (system: { - default = { - program = "${self.packages.${system}.default}/bin/dyn_gandi"; - type = "app"; - }; - }); - # `nix develop` devShells = forAllSystems (system: { default = pkgs.${system}.mkShellNoCC { diff --git a/nix/module.nix b/nix/module.nix index 2e5a711..1f01c69 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -46,7 +46,7 @@ in { systemd.services.dyn-gandi = mkIf (cfg.timer != null) { - script = "${package}/bin/dyn_gandi --config ${configFile}"; + script = "${package}/bin/dyn-gandi --config ${configFile}"; serviceConfig = { Type = "oneshot"; diff --git a/pyproject.toml b/pyproject.toml index 37ff219..a41b277 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,14 +4,14 @@ version = "0.1.0" description = "A DNS updater" authors = ["Kristian Krsnik "] readme = "README.md" -packages = [{include = "dyn_gandi"}] +packages = [{ include = "dyn_gandi" }] [tool.poetry.dependencies] python = "^3.10" requests = "2.29.0" [tool.poetry.scripts] -dyn_gandi = "dyn_gandi.main:main" +dyn-gandi = "dyn_gandi.main:main" [build-system] requires = ["poetry-core"]