Fix aerospace namespace conflict and claude-code override

Rename custom aerospace module from services.aerospace to roles.aerospace
to avoid conflicting with nix-darwin's built-in aerospace service support.

Move claude-code package override to flake-level overlay to ensure the
GCS-distributed version is used instead of the npm registry version in
unstable. This is necessary for corporate environments where npm registry
access may be blocked.
This commit is contained in:
2025-12-02 15:16:55 -08:00
parent fe6558e0c1
commit 385fd798de
3 changed files with 13 additions and 5 deletions

View File

@@ -110,6 +110,13 @@
unstable = import nixpkgs-unstable {
system = prev.system;
config.allowUnfree = true;
overlays = [
# Override claude-code in unstable to use our custom GCS-based build
# (needed for corporate networks that block npm registry)
(ufinal: uprev: {
claude-code = prev.custom.claude-code or (prev.callPackage ./packages {}).claude-code;
})
];
};
custom = prev.callPackage ./packages {};
# Compatibility: bitwarden renamed to bitwarden-desktop in unstable

View File

@@ -18,10 +18,11 @@
NSGlobalDomain.AppleShowAllExtensions = true;
};
# Enable aerospace system settings
services.aerospace = {
# Enable our custom aerospace system configuration
# (separate from nix-darwin's services.aerospace which manages the service)
roles.aerospace = {
enable = true;
enableSpansDisplays = true; # Default, but shown for clarity
enableSpansDisplays = true;
};
# TODO: Find a way to not duplicate this

View File

@@ -3,10 +3,10 @@
with lib;
let
cfg = config.services.aerospace;
cfg = config.roles.aerospace;
in
{
options.services.aerospace = {
options.roles.aerospace = {
enable = mkEnableOption "AeroSpace window manager system configuration";
enableSpansDisplays = mkOption {