Console Script Application
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user