fix(hosts): restore user home-manager wiring and refresh pi-harness deps hash

This commit is contained in:
2026-03-29 18:03:12 +00:00
parent 901059d0cd
commit 11c816b2c2
9 changed files with 136 additions and 127 deletions

View File

@@ -39,7 +39,7 @@ in {
}; };
}); });
default = [ default = [
{path = "/Applications/Helium.app/";} {path = "/Applications/Safari.app/";}
{path = "/Applications/Ghostty.app/";} {path = "/Applications/Ghostty.app/";}
{path = "/System/Applications/Calendar.app/";} {path = "/System/Applications/Calendar.app/";}
{path = "/System/Applications/Mail.app/";} {path = "/System/Applications/Mail.app/";}

View File

@@ -1,7 +1,9 @@
{ {
den, den,
lib, lib,
}: { }: let
merge = lib.recursiveUpdate;
in {
mkUserHost = { mkUserHost = {
system, system,
host, host,
@@ -10,8 +12,9 @@
includes ? [], includes ? [],
homeManager ? null, homeManager ? null,
}: }:
merge
(lib.setAttrByPath ["den" "hosts" system host "users" user "aspect"] userAspect) (lib.setAttrByPath ["den" "hosts" system host "users" user "aspect"] userAspect)
// (lib.setAttrByPath ["den" "aspects" userAspect] ({inherit includes;} (lib.setAttrByPath ["den" "aspects" userAspect] ({inherit includes;}
// lib.optionalAttrs (homeManager != null) { // lib.optionalAttrs (homeManager != null) {
inherit homeManager; inherit homeManager;
})); }));

View File

@@ -12,7 +12,7 @@
src = inputs.pi-harness; src = inputs.pi-harness;
pnpm = prev.pnpm_10; pnpm = prev.pnpm_10;
fetcherVersion = 1; fetcherVersion = 1;
hash = "sha256-NxdWrSNhk+rcvACQoBRPa+bHgLi9vMwCxjH2UySVXEc="; hash = "sha256-l85j3MH/uott+6Cbo9r3w8jojdlikjGf26l4Q1qa43g=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@@ -151,10 +151,12 @@ in {
"alcove" "alcove"
"aqua-voice" "aqua-voice"
"ghostty@tip" "ghostty@tip"
"helium-browser"
"raycast" "raycast"
"spotify" "spotify"
]; ];
masApps = {
"Wipr 2" = 1662217862;
};
}; };
}; };
} }

View File

@@ -56,7 +56,7 @@
} }
{ {
"if" = { "if" = {
"app-id" = "net.imput.helium"; "app-id" = "com.apple.Safari";
}; };
run = "move-node-to-workspace 2"; run = "move-node-to-workspace 2";
} }

View File

@@ -8,7 +8,8 @@
host = "chidi"; host = "chidi";
hostMeta = local.hosts.chidi; hostMeta = local.hosts.chidi;
in in
hostLib.mkUserHost { lib.recursiveUpdate
(hostLib.mkUserHost {
system = hostMeta.system; system = hostMeta.system;
inherit host; inherit host;
user = local.user.name; user = local.user.name;
@@ -16,8 +17,8 @@ in
homeManager = {...}: { homeManager = {...}: {
programs.git.settings.user.email = local.user.emails.work; programs.git.settings.user.email = local.user.emails.work;
}; };
} })
// hostLib.mkPerHostAspect { (hostLib.mkPerHostAspect {
inherit host; inherit host;
includes = [ includes = [
den.aspects.host-darwin-base den.aspects.host-darwin-base
@@ -31,4 +32,4 @@ in
"slack" "slack"
]; ];
}; };
} })

View File

@@ -8,7 +8,8 @@
host = "janet"; host = "janet";
hostMeta = local.hosts.janet; hostMeta = local.hosts.janet;
in in
hostLib.mkUserHost { lib.recursiveUpdate
(hostLib.mkUserHost {
system = hostMeta.system; system = hostMeta.system;
inherit host; inherit host;
user = local.user.name; user = local.user.name;
@@ -16,8 +17,8 @@ in
den.aspects.user-darwin-laptop den.aspects.user-darwin-laptop
den.aspects.user-personal den.aspects.user-personal
]; ];
} })
// hostLib.mkPerHostAspect { (hostLib.mkPerHostAspect {
inherit host; inherit host;
includes = [ includes = [
den.aspects.host-darwin-base den.aspects.host-darwin-base
@@ -27,4 +28,4 @@ in
networking.hostName = host; networking.hostName = host;
networking.computerName = host; networking.computerName = host;
}; };
} })

View File

@@ -9,13 +9,14 @@
host = "michael"; host = "michael";
hostMeta = local.hosts.michael; hostMeta = local.hosts.michael;
in in
hostLib.mkUserHost { lib.recursiveUpdate
(hostLib.mkUserHost {
system = hostMeta.system; system = hostMeta.system;
inherit host; inherit host;
user = local.user.name; user = local.user.name;
includes = [den.aspects.user-minimal]; includes = [den.aspects.user-minimal];
} })
// hostLib.mkPerHostAspect { (hostLib.mkPerHostAspect {
inherit host; inherit host;
includes = [ includes = [
den.aspects.host-public-server den.aspects.host-public-server
@@ -31,4 +32,4 @@ in
networking.hostName = host; networking.hostName = host;
}; };
} })

View File

@@ -9,7 +9,8 @@
host = "tahani"; host = "tahani";
hostMeta = local.hosts.tahani; hostMeta = local.hosts.tahani;
in in
hostLib.mkUserHost { lib.recursiveUpdate
(hostLib.mkUserHost {
system = hostMeta.system; system = hostMeta.system;
inherit host; inherit host;
user = local.user.name; user = local.user.name;
@@ -30,8 +31,8 @@ in
} }
''; '';
}; };
} })
// hostLib.mkPerHostAspect { (hostLib.mkPerHostAspect {
inherit host; inherit host;
includes = [ includes = [
den.aspects.host-nixos-base den.aspects.host-nixos-base
@@ -71,4 +72,4 @@ in
} }
]; ];
}; };
} })