1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 00:18:30 +02:00
home-manager/home-manager/home-manager.nix

16 lines
289 B
Nix
Raw Normal View History

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