mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
26 lines
777 B
Nix
26 lines
777 B
Nix
{ inputs, self, lib, ... }:
|
|
{
|
|
perSystem = { pkgs, ... }:
|
|
let
|
|
activationPackages = builtins.mapAttrs (_: lib.getAttr "activationPackage") self.homeConfigurations;
|
|
in
|
|
{
|
|
homeConfigurations.willem = inputs.home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
modules = [
|
|
self.homeManagerModules.profiles-user-willem
|
|
];
|
|
extraSpecialArgs = {
|
|
inherit pkgs;
|
|
nurNoPkgs = import inputs.nur {
|
|
nurpkgs = pkgs;
|
|
pkgs = throw "nixpkgs eval";
|
|
};
|
|
};
|
|
};
|
|
packages = lib.pipe activationPackages [
|
|
(lib.filterAttrs (_: drv: pkgs.system == drv.system))
|
|
(lib.mapAttrs' (username: lib.nameValuePair "home-${username}"))
|
|
];
|
|
};
|
|
}
|