{ inputs = { nixpkgs.url = "github:illustris/nixpkgs/guestfs-tools"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils, }: flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] ( system: let pkgs = import nixpkgs { inherit system; overlays = nixpkgs.lib.optional (system == "aarch64-linux") (import ./overlay.nix); }; sshPort = 43922; httpPort = 43980; server = pkgs.callPackage ./server.nix { inherit sshPort httpPort; }; client = pkgs.callPackage ./client.nix { inherit sshPort httpPort; }; in { packages.default = pkgs.symlinkJoin { name = "reMder"; paths = [ client server ]; }; } ); }