1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 21:13:33 +02:00
home-manager/home-manager/home-manager.nix
2017-08-28 11:37:34 +02:00

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;
}