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

19 lines
478 B
Nix
Raw Normal View History

{ pkgs ? import <nixpkgs> { }, confPath, confAttr ? null, check ? true
, newsReadIdsFile ? null }:
let
inherit (pkgs.lib)
concatMapStringsSep fileContents filter length optionalString removeSuffix
replaceStrings splitString;
env = import ../modules {
configuration = if confAttr == "" || confAttr == null then
confPath
else
(import confPath).${confAttr};
pkgs = pkgs;
check = check;
};
in { inherit (env) activationPackage config; }