split off terminal utilities

This commit is contained in:
2026-04-22 18:45:00 -04:00
parent c3cc94a305
commit 1be21b6c52
7 changed files with 243 additions and 226 deletions

View File

@@ -163,6 +163,9 @@
niriPackage = inputs.niri.packages.${system}.niri-unstable;
# --- Desktop-channel pkgs (used by portable homeConfigurations) ---
desktopPkgs = import nixpkgs { inherit system; };
# --- Server (muffin) plumbing ---
bootstrapPkgs = import nixpkgs-stable { inherit system; };
patchedStableSrc = bootstrapPkgs.applyPatches {
@@ -367,6 +370,24 @@
muffin = muffinHost;
};
# Standalone home-manager profile — usable on any x86_64-linux machine
# with nix installed (NixOS or not). Activate with:
# nix run home-manager/master -- switch --flake ".#primary"
# Ships the shared terminal profile (fish, helix, modern CLI, git).
homeConfigurations.primary = home-manager.lib.homeManagerConfiguration {
pkgs = desktopPkgs;
modules = [
./home/profiles/terminal.nix
{
home = {
username = username;
homeDirectory = "/home/${username}";
stateVersion = "24.11";
};
}
];
};
deploy.nodes.muffin = {
hostname = "server-public";
profiles.system = {
@@ -395,6 +416,11 @@
path = test;
}) testSuite
);
# Buildenv of every binary in the portable terminal profile. Install
# without home-manager via:
# nix profile install ".#cli-tools"
cli-tools = self.homeConfigurations.primary.config.home.path;
}
// (serverPkgs.lib.mapAttrs' (name: test: {
name = "test-${name}";