nix: apply shared home config to reserved aid
All checks were successful
Build / Create distribution (push) Successful in 2m16s
Test / Run NixOS test (push) Successful in 5m43s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
Ophestra 2025-01-23 20:48:04 +09:00
parent 8a00a83c71
commit 96d5d8a396
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q

View File

@ -204,7 +204,8 @@ in
users = foldlAttrs ( users = foldlAttrs (
acc: _: fid: acc: _: fid:
mergeAttrsList ( mkMerge [
(mergeAttrsList (
# aid 0 is reserved # aid 0 is reserved
imap1 (aid: app: { imap1 (aid: app: {
${getsubname fid aid} = mkMerge [ ${getsubname fid aid} = mkMerge [
@ -213,8 +214,10 @@ in
{ home.packages = app.packages; } { home.packages = app.packages; }
]; ];
}) cfg.apps }) cfg.apps
) ))
// acc { ${getsubname fid 0} = cfg.home-manager (getsubname fid 0) (getsubuid fid 0); }
acc
]
) privPackages cfg.users; ) privPackages cfg.users;
}; };