mirror of
https://github.com/nix-community/home-manager
synced 2024-06-02 21:13:33 +02:00
16 lines
291 B
Nix
16 lines
291 B
Nix
{ pkgs ? import <nixpkgs> {}, confPath, confAttr }:
|
|
|
|
let
|
|
env = import <home-manager> {
|
|
configuration =
|
|
let
|
|
conf = import confPath;
|
|
in
|
|
if confAttr == "" then conf else conf.''${confAttr};
|
|
pkgs = pkgs;
|
|
};
|
|
in
|
|
{
|
|
inherit (env) activationPackage;
|
|
}
|