blob: 6682d78faffdf66d0b0eb07fa09716a9ce1c42e3 (
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
|
{ self, home-manager, ... } @ inputs:
{ username, hostname, system ? "x86_64-linux", pkgs, version, extraModules ? null }:
let
entrypoint = "${self}/home/${hostname}/${username}.nix";
in
home-manager.lib.homeManagerConfiguration {
inherit username system;
homeDirectory = "/home/${username}";
stateVersion = version;
pkgs = pkgs;
configuration = { lib, ... }: {
_module.args.inputs = self.inputs;
_module.args.self = self;
manual = {
html.enable = false;
manpages.enable = false;
json.enable = false;
};
imports = [
entrypoint
] ++ lib.optionals (extraModules != null) extraModules;
};
}
|