# `nix run .#`: install and key/secret helpers (../../pkgs). { perSystem = { lib, pkgs, ... }: let app = pkg: description: { program = lib.getExe pkg; meta.description = description; }; in { apps = { install = app pkgs.install-system "Install this flake onto this machine from the NixOS installer (wipes the configured disks)"; create-keys = app pkgs.create-keys "Create the SSH host key and Secure Boot keys in keys//"; set-password = app pkgs.set-password "Encrypt the login password into secrets/-password.age"; secret-from-file = app pkgs.secret-from-file "Encrypt an existing file (e.g. an SSH key) as secrets/.age"; switch = app pkgs.switch-system "Rebuild and switch this machine from the flake"; }; }; }