blob: 8aaa0bbe42e2914c60ffa335122f423c82ed27d1 (
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
37
38
39
|
{
lib,
withSystem,
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;
inputs' = withSystem (args.system or "x86_64-linux") ({inputs', ...}: inputs');
};
pkgs = args.pkgs or inputs.nixpkgs.legacyPackages."x86_64-linux";
});
mapUsers = lib.mapAttrs mkUser;
in {
flake.homeConfigurations = mapUsers {
seth = {};
};
}
|