WIP: home-manager modules and install tooling (in progress, unreviewed)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J1cugeLkfFLZMpiztQ8TyN
This commit is contained in:
Claude committed 2026-10-11 12:39:07 +00:00
1 parent 0ce9943d56
commit f3660d3505
30 files changed
+2619

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
# `nix run .#<app>`: 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/<host>/";
set-password = app pkgs.set-password "Encrypt the login password into secrets/<user>-password.age";
secret-from-file = app pkgs.secret-from-file "Encrypt an existing file (e.g. an SSH key) as secrets/<name>.age";
switch = app pkgs.switch-system "Rebuild and switch this machine from the flake";
}