summaryrefslogtreecommitdiff
path: root/users/default.nix
blob: c6545830ff4416db5201b1ef0239aa64558b431f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  inputs,
  self,
  ...
}: let
  /*
  basic homeManagerConfiguration wrapper. defaults to x86_64-linux
  and gives basic, nice defaults
  */
  mkUser = name: args:
    inputs.hm.lib.homeManagerConfiguration (args
      // {
        modules =
          [
            ./${name}/home.nix

            {
              _module.args.osConfig = {};
              programs.home-manager.enable = true;
            }
          ]
          ++ (args.modules or []);

        extraSpecialArgs = {inherit inputs self;};
        pkgs = args.pkgs or inputs.nixpkgs.legacyPackages."x86_64-linux";
      });

  mapUsers = lib.mapAttrs mkUser;
in {
  flake.homeConfigurations = mapUsers {
    seth = {};
  };
}