# `nix run .#`: install and key/secret helpers (see ../pkgs). { pkgs, ... }: let app = pkg: description: { type = "app"; program = pkgs.lib.getExe pkg; meta.description = description; }; in { 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"; }