{ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs.handyhelper.url = "../"; outputs = { self, nixpkgs, handyhelper }: let system = "x86_64-linux"; handyhelper = handyhelper.packages.${system}.default; in { nixosConfigurations."staging" = nixpkgs.lib.nixosSystem { inherit system; modules = [ ../secrets/deploy.nix ({lib, config, pkgs, ...}: let py = pkgs.python3.withPackages (p: with p; [ handyhelper ]); in { systemd.services.handyhelper = { wantedBy = ["networking-online.target"]; enable = true; path = [ py ]; script = '' python3 -m handyhelper ''; }; }) ]; }; }; }