2022-06-16 14:13:06 +02:00
|
|
|
{ pkgs ? import <nixpkgs> { }, confPath, confAttr ? null, check ? true
|
|
|
|
, newsReadIdsFile ? null }:
|
2017-08-26 22:24:40 +02:00
|
|
|
|
2017-08-28 11:37:34 +02:00
|
|
|
let
|
2021-10-27 14:23:19 +02:00
|
|
|
inherit (pkgs.lib)
|
|
|
|
concatMapStringsSep fileContents filter length optionalString removeSuffix
|
|
|
|
replaceStrings splitString;
|
2017-08-26 22:24:40 +02:00
|
|
|
|
2018-12-02 08:48:00 +01:00
|
|
|
env = import ../modules {
|
2022-06-16 14:13:06 +02:00
|
|
|
configuration = if confAttr == "" || confAttr == null then
|
|
|
|
confPath
|
|
|
|
else
|
|
|
|
(import confPath).${confAttr};
|
2017-08-28 11:37:34 +02:00
|
|
|
pkgs = pkgs;
|
2017-08-26 22:24:40 +02:00
|
|
|
check = check;
|
2017-08-28 11:37:34 +02:00
|
|
|
};
|
2017-08-26 22:24:40 +02:00
|
|
|
|
2023-07-29 19:56:00 +02:00
|
|
|
in { inherit (env) activationPackage config; }
|