refactor: mkHost load-all infrastructure and convert simple features

This commit is contained in:
2026-04-12 21:27:43 +00:00
parent 3ff4583017
commit 6770bc76a2
18 changed files with 455 additions and 210 deletions

View File

@@ -1,10 +1,21 @@
{
home =
{ pkgs, ... }:
nixos =
{ lib, ... }:
{
home.packages = [
pkgs.claude-code
pkgs.mcp-nixos
];
options.features.claude.enable = lib.mkEnableOption "claude";
};
home =
{ pkgs, lib, osConfig, ... }:
let
cfg = osConfig.features.claude;
in
{
config = lib.mkIf cfg.enable {
home.packages = [
pkgs.claude-code
pkgs.mcp-nixos
];
};
};
}