mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
The Nix code that was extracted to its own file erroneously included
escaping of "${".
(cherry picked from commit 5eff7f38df)
16 lines
289 B
Nix
16 lines
289 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;
|
|
}
|