Console Script Application

This commit is contained in:
2023-03-15 23:04:46 -04:00
parent ee29c54eef
commit ca09506e7d
5 changed files with 13 additions and 12 deletions

View File

@@ -4,7 +4,7 @@
outputs = { self, nixpkgs, handyhelper }: let
system = "x86_64-linux";
handy_py = handyhelper.packages.${system}.handyhelper_pkg;
handy_py = handyhelper.packages.${system}.handyhelper;
in {
nixosConfigurations."staging" = nixpkgs.lib.nixosSystem {
inherit system;
@@ -16,13 +16,9 @@
wantedBy = ["networking-online.target"];
enable = true;
serviceConfig = {
ExecStart = let
python = pkgs.python3.withPackages (p: with p; [
handy_py
openai
]);
in
"${python.interpreter} -m handyhelper";
ExecStart = ''
${handy_py}/bin/handyhelper
'';
};
};
})