simplify nh config

This commit is contained in:
Henry Hiles 2026-11-16 12:28:09 -05:00
commit 30ca62b838
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -16,8 +16,11 @@ in
system.tools.nixos-rebuild.enable = false;
environment = {
# e.g. `server rebuild` or `phone boot`: the aliases, for another host over SSH
environment.systemPackages = lib.mapAttrsToList (
systemPackages =
lib.mapAttrsToList
(
command: host:
pkgs.writeShellScriptBin command ''
${lib.concatMapAttrsStringSep "\n" (
@ -26,12 +29,15 @@ in
"$@"
''
) {
)
{
server = "quadraticserver";
phone = "quadphone";
};
environment.shellAliases = aliases // {
shellAliases = aliases // {
clean = "nh clean all";
};
};
}