Files
dotfiles/home/linux/device.nix
2025-06-19 18:18:50 +05:30

24 lines
478 B
Nix

{
devices,
inputs,
overlays,
home-manager,
...
}: (builtins.mapAttrs (
name: device: let
pkgs = import inputs.nixpkgs {
inherit overlays;
system = device.system;
};
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit inputs;
inherit device;
};
modules = [{nixpkgs.config.allowUnfree = true;} ../common/home.nix];
}
)
devices)