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

18 lines
611 B
Nix
Raw Normal View History

{ 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:24:55 +01:00
config.warnings = lib.mkIf (!materusCfg.materusFlake.decrypted) ["Repository not decrypted, private configs not loaded, use crypt.sh to decrypt"];
2023-10-08 11:42:08 +02:00
}