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,17 +204,20 @@ in
users = foldlAttrs ( users = foldlAttrs (
acc: _: fid: acc: _: fid:
mergeAttrsList ( mkMerge [
# aid 0 is reserved (mergeAttrsList (
imap1 (aid: app: { # aid 0 is reserved
${getsubname fid aid} = mkMerge [ imap1 (aid: app: {
(cfg.home-manager (getsubname fid aid) (getsubuid fid aid)) ${getsubname fid aid} = mkMerge [
app.extraConfig (cfg.home-manager (getsubname fid aid) (getsubuid fid aid))
{ home.packages = app.packages; } app.extraConfig
]; { 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;
}; };