[feat] More refactoring

This commit is contained in:
uttarayan21
2024-02-18 04:03:22 +05:30
parent 6ff53baef0
commit f6775ed1cf
5 changed files with 242 additions and 211 deletions

View File

@@ -0,0 +1,28 @@
{
devices,
inputs,
overlays,
home-manager,
...
}:
builtins.listToAttrs (builtins.map
(device: {
name = device.user;
value = let
pkgs = import inputs.nixpkgs {
inherit overlays;
system = device.system;
};
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit inputs;
inherit device;
};
modules = [
../common/home.nix
];
};
})
devices)