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