feat: restructure and move apps into their own configs (#2)
This commit is contained in:
25
home/linux/device.nix
Normal file
25
home/linux/device.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
devices,
|
||||
inputs,
|
||||
overlays,
|
||||
home-manager,
|
||||
...
|
||||
}:
|
||||
builtins.listToAttrs (builtins.map (device: {
|
||||
name = device.name;
|
||||
value = 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)
|
||||
Reference in New Issue
Block a user