nix: apply shared home config to reserved aid
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
8a00a83c71
commit
96d5d8a396
25
nixos.nix
25
nixos.nix
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user