fix: make inputs self-contained

This commit is contained in:
m3tam3re
2026-06-06 13:13:58 +02:00
parent 5c92a9f1c6
commit add002e05c
6 changed files with 70 additions and 68 deletions
Generated
+4 -4
View File
@@ -28,11 +28,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1780157040, "lastModified": 1780736323,
"narHash": "sha256-j2d3nj3FvOlxQ+Zlse+rMo3qHD3m4Gick5uiwtTaA2o=", "narHash": "sha256-b4CfjbWTT+5Z0XBI2/W2DnybwkYVwLxghCwXVmw9+Iw=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "f63712a9ba03da6e2f591766d0f055aa65e6d237", "rev": "b0c832c9e02d8b3d8ad091f022c859382a037afd",
"revCount": 24, "revCount": 26,
"type": "git", "type": "git",
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/agent-lib" "url": "ssh://gitea@code.m3ta.dev/m3tam3re/agent-lib"
}, },
+4
View File
@@ -87,6 +87,8 @@ in {
inputs.agent-lib.homeManagerModules.default inputs.agent-lib.homeManagerModules.default
inputs.dms.homeModules.default inputs.dms.homeModules.default
inputs.dms-plugin-registry.homeModules.default inputs.dms-plugin-registry.homeModules.default
inputs.nix-colors.homeManagerModules.default
inputs.m3ta-nixpkgs.homeManagerModules.default
# Paths module — must be first, provides m3taHome.paths.srcRoot # Paths module — must be first, provides m3taHome.paths.srcRoot
../modules/paths.nix ../modules/paths.nix
@@ -97,6 +99,8 @@ in {
++ contextImport ++ contextImport
++ setImports; ++ setImports;
_module.args.m3taHomeInputs = inputs;
# Set the flake source root for asset path resolution # Set the flake source root for asset path resolution
"m3ta-home".paths.srcRoot = selfPath; "m3ta-home".paths.srcRoot = selfPath;
+5 -3
View File
@@ -8,15 +8,15 @@
{ {
inputs, inputs,
selfPath, selfPath,
}: let }: {
lib = inputs.nixpkgs.lib;
in {
default = { default = {
imports = [ imports = [
# External modules # External modules
inputs.agent-lib.homeManagerModules.default inputs.agent-lib.homeManagerModules.default
inputs.dms.homeModules.default inputs.dms.homeModules.default
inputs.dms-plugin-registry.homeModules.default inputs.dms-plugin-registry.homeModules.default
inputs.nix-colors.homeManagerModules.default
inputs.m3ta-nixpkgs.homeManagerModules.default
# Paths — must be first, provides "m3ta-home".paths.srcRoot # Paths — must be first, provides "m3ta-home".paths.srcRoot
./paths.nix ./paths.nix
@@ -34,6 +34,8 @@ in {
./../users/m3tam3re/identities/work.nix ./../users/m3tam3re/identities/work.nix
]; ];
_module.args.m3taHomeInputs = inputs;
# Set the source root for asset path resolution # Set the source root for asset path resolution
"m3ta-home".paths.srcRoot = selfPath; "m3ta-home".paths.srcRoot = selfPath;
}; };
+5 -8
View File
@@ -1,7 +1,6 @@
# profiles/base/default.nix — Always loaded on every host. # profiles/base/default.nix — Always loaded on every host.
# #
# Provides: # Provides:
# - nix-colors and m3ta-nixpkgs HM module imports
# - Shell (nushell, fish, starship) with enable options # - Shell (nushell, fish, starship) with enable options
# - CLI tools (bat, carapace, direnv, eza, fzf, lf, nitch, television, zellij, zoxide) # - CLI tools (bat, carapace, direnv, eza, fzf, lf, nitch, television, zellij, zoxide)
# - Secrets management (pass-wayland) # - Secrets management (pass-wayland)
@@ -9,21 +8,19 @@
# - Base packages # - Base packages
# #
# NOTE: Overlays are NOT set here. The consuming flake (nixos-config) handles # NOTE: Overlays are NOT set here. The consuming flake (nixos-config) handles
# overlays at the NixOS level via nixpkgs.overlays. This module only imports # overlays at the NixOS level via nixpkgs.overlays. External HM modules are
# HM modules and sets user-level preferences. # imported by mkHome/modules/default.nix. This module only imports base profile
# submodules and sets user-level preferences.
# #
# When used standalone (not through NixOS), overlays should be set by the # When used standalone (not through NixOS), overlays should be set by the
# standalone HM configuration or by the consuming flake. # standalone HM configuration or by the consuming flake.
{ {
inputs,
lib, lib,
m3taHomeInputs,
pkgs, pkgs,
... ...
}: { }: {
imports = [ imports = [
inputs.nix-colors.homeManagerModules.default
inputs.m3ta-nixpkgs.homeManagerModules.default
./shell ./shell
./cli-tools ./cli-tools
./secrets ./secrets
@@ -44,7 +41,7 @@
}; };
# ── Color scheme ── # ── Color scheme ──
colorScheme = inputs.nix-colors.colorSchemes.dracula; colorScheme = m3taHomeInputs.nix-colors.colorSchemes.dracula;
# ── Base packages ── # ── Base packages ──
home.packages = with pkgs; [ home.packages = with pkgs; [
+36 -35
View File
@@ -1,8 +1,7 @@
# Desktop environment aggregator — only loaded when context=desktop. # Desktop environment aggregator — only loaded when context=desktop.
# Includes window manager, applications, theming, and desktop session config. # Includes window manager, applications, theming, and desktop session config.
{ {
config, m3taHomeInputs,
inputs,
pkgs, pkgs,
... ...
}: { }: {
@@ -39,7 +38,8 @@
}; };
}; };
home.sessionVariables = { home = {
sessionVariables = {
WEBKIT_DISABLE_COMPOSITING_MODE = "1"; WEBKIT_DISABLE_COMPOSITING_MODE = "1";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
TERMINAL = "ghostty"; TERMINAL = "ghostty";
@@ -49,13 +49,45 @@
XDG_SESSION_DESKTOP = "Hyprland"; XDG_SESSION_DESKTOP = "Hyprland";
}; };
home.sessionPath = [ sessionPath = [
"\${XDG_BIN_HOME}" "\${XDG_BIN_HOME}"
"\${HOME}/.cargo/bin" "\${HOME}/.cargo/bin"
"$HOME/.npm-global/bin" "$HOME/.npm-global/bin"
"$HOME/.cache/.bun/bin" "$HOME/.cache/.bun/bin"
]; ];
pointerCursor = {
gtk.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
size = 20;
};
packages = with pkgs; [
appimage-run
bemoji
dconf
(element-desktop.override {
commandLineArgs = "--password-store=gnome-libsecret";
})
m3taHomeInputs.hermes-agent.packages.${pkgs.system}.desktop
launch-webapp
file-roller
gsettings-desktop-schemas
seahorse
sushi
ksnip
nwg-look
qt6Packages.qt6ct
rose-pine-hyprcursor
remmina
slack
vivaldi
vivaldi-ffmpeg-codecs
vibetyper
];
};
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
programs.ghostty = { programs.ghostty = {
@@ -91,35 +123,4 @@
# ]; # ];
}; };
}; };
home.pointerCursor = {
gtk.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
size = 20;
};
home.packages = with pkgs; [
appimage-run
bemoji
dconf
(element-desktop.override {
commandLineArgs = "--password-store=gnome-libsecret";
})
inputs.hermes-agent.packages.${pkgs.system}.desktop
launch-webapp
file-roller
gsettings-desktop-schemas
seahorse
sushi
ksnip
nwg-look
qt6Packages.qt6ct
rose-pine-hyprcursor
remmina
slack
vivaldi
vivaldi-ffmpeg-codecs
vibetyper
];
} }
+3 -5
View File
@@ -1,10 +1,8 @@
# AI agent system — OpenCode, Pi, and MCP server configuration. # AI agent system — OpenCode, Pi, and MCP server configuration.
# Relies on coding.agents options provided by home/common/default.nix # Relies on coding.agents options provided by home/common/default.nix
# (inputs.m3ta-nixpkgs.homeManagerModules.default). # (m3taHomeInputs.m3ta-nixpkgs.homeManagerModules.default).
{ {
config, m3taHomeInputs,
inputs,
lib,
pkgs, pkgs,
videoDrivers ? [], videoDrivers ? [],
... ...
@@ -62,7 +60,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
agenix-cli agenix-cli
agent-browser agent-browser
inputs.agent-lib.packages.${pkgs.system}.agent-lib-cli m3taHomeInputs.agent-lib.packages.${pkgs.system}.agent-lib-cli
beads beads
pi-coding-agent pi-coding-agent
(qmd.override { (qmd.override {