summaryrefslogtreecommitdiff
path: root/users/default.nix
blob: 92097242c36608a360a73369a894055f64880271 (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
35
36
{
  lib,
  inputs,
  self,
  ...
}: let
  inherit (inputs.hm.lib) homeManagerConfiguration;

  /*
  basic homeManagerConfiguration wrapper. defaults to x86_64-linux
  and gives basic, nice defaults
  */
  mapUsers = lib.mapAttrs (
    name: args:
      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";
        })
  );
in {
  flake.homeConfigurations = mapUsers {
    seth = {};
  };
}