split off terminal utilities
This commit is contained in:
26
flake.nix
26
flake.nix
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user