{ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs.handyhelper.url = "../"; outputs = { self, nixpkgs, handyhelper }: let system = "x86_64-linux"; handy_py = handyhelper.packages.${system}.handyhelper; in { nixosConfigurations."staging" = nixpkgs.lib.nixosSystem { inherit system; modules = [ ../secrets/deploy.nix ({lib, config, pkgs, ...}: let in { systemd.services.handyhelper = { wantedBy = ["networking-online.target"]; enable = true; serviceConfig = { WorkingDirectory = "handyhelper"; ExecStart = '' ${handy_py}/bin/handyhelper ''; }; }; }) ]; }; }; }