2023-10-27 14:01:54 +02:00
|
|
|
{ config, pkgs, lib, materusCfg, ... }:
|
|
|
|
let
|
|
|
|
materusArg = {
|
|
|
|
pkgs = (import materusCfg.nixerus { inherit pkgs; }) //
|
|
|
|
(if pkgs.system == "x86_64-linux" then { i686Linux = import materusCfg.nixerus { pkgs = pkgs.pkgsi686Linux; }; } else { });
|
|
|
|
cfg = materusCfg;
|
|
|
|
};
|
|
|
|
in
|
2023-10-08 11:42:08 +02:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./nixpkgs.nix
|
|
|
|
./packages
|
|
|
|
];
|
2024-02-25 18:51:56 +01:00
|
|
|
options.materus.materusArg = lib.mkOption {default = {};};
|
|
|
|
config._module.args.materusArg = config.materus.materusArg // materusArg;
|
2024-03-03 01:23:53 +01:00
|
|
|
config.warnings = lib.mkIf (!materusCfg.materusFlake.decrypted) ["Repository not decrytped, private configs not loaded, use crypt.sh to decrypt"];
|
2023-10-08 11:42:08 +02:00
|
|
|
}
|