blob: ab279819767dfe125ac399658786290a4371b21d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{ inputs }:
{ username, system, extraModules ? [ ] }:
let
unfreeAllowlist = import ./unfree-allowlist.nix;
in
inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfreePredicate = pkg:
builtins.elem (inputs.nixpkgs.lib.getName pkg) unfreeAllowlist;
};
modules = [ ../users/${username}.nix ] ++ extraModules;
}
|