nixos-config/configurations/profile/common/default.nix

27 lines
657 B
Nix
Raw Normal View History

{ config, pkgs, lib, materusCfg, ... }:
let
2024-03-11 16:19:31 +01:00
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
./private
2023-10-08 11:42:08 +02:00
];
2024-03-11 16:19:31 +01:00
options.materus.materusArg = lib.mkOption { default = { }; };
2024-02-25 18:51:56 +01:00
config._module.args.materusArg = config.materus.materusArg // materusArg;
2024-03-21 23:43:36 +01:00
config.assertions = [
{
assertion = materusCfg.materusFlake.decrypted;
message = "Repository not decrypted, use crypt.sh to decrypt";
}
];
2023-10-08 11:42:08 +02:00
}