about summary refs log tree commit diff
path: root/lib/home_configurations_as_packages.nix
blob: 55d3e551fe9607f6c9365b4f1ef30d19c875b705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ self, ... } @ inputs:

let
  pkgs = import inputs.unstable { system = "x86_64-linux"; };

  inherit (pkgs.lib) genAttrs mapAttrs';

  hostNames = __attrNames self.homeConfigurations;
  attrHostNames = genAttrs hostNames (name: "home/config/${name}");
  configs = mapAttrs' (name: pname: { name = pname; value = self.homeConfigurations.${name}.activationPackage; }) attrHostNames;
in
{ x86_64-linux = configs; }