Close, couldn’t get @args
to work. The below works, though.
{ lib, pkgs, config, ... } @args:
let
deployment-path = /home/tmplt/nixops/systems/laptop.nix;
server-name = "laptop";
in lib.filterAttrs (n: v: n != "deployment") ((import deployment-path).${server-name} { inherit args pkgs config lib; } )