Files
dotfiles/config/nix/darwin/device.nix
Uttarayan Mondal 6453f713a7 [feat] Add stuff
2024-03-03 00:57:19 +05:30

30 lines
798 B
Nix

{ devices, inputs, overlays, home-manager, nix-darwin, ... }:
builtins.listToAttrs (builtins.map
(device: {
name = device.name;
value = nix-darwin.lib.darwinSystem {
system = device.system;
modules = [
{
nixpkgs.overlays = overlays;
# nixpkgs.hostPlatform.config = device.system;
}
./configuration.nix
home-manager.darwinModules.home-manager
{
nixpkgs.config.allowUnfree = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs;
inherit device;
};
users.${device.user}.imports = [ ../common/home.nix ];
};
}
];
};
})
devices)