{ inputs, withSystem, ... }: let name = "zet"; in { perSystem = { pkgs, ... }: { packages.${name} = pkgs.writeShellApplication { inherit name; bashOptions = [ "pipefail" ]; runtimeInputs = with pkgs; [ bashInteractive coreutils fzf git ]; text = builtins.readFile "${inputs.zet}/${name}"; }; }; flake.modules.homeManager.base = { config, pkgs, ... }: { home.packages = [ (withSystem pkgs.system (psArgs: psArgs.config.packages.${name})) ]; home.sessionVariables = { ZET_DIR = "${config.xdg.userDirs.documents}/zet"; }; }; }