2023-10-27 14:01:54 +02:00
|
|
|
{ config, pkgs, lib, materusArg, ... }:
|
2023-10-08 11:42:08 +02:00
|
|
|
let
|
|
|
|
mkBoolOpt = default: description: lib.mkOption {
|
|
|
|
inherit default;
|
|
|
|
inherit description;
|
|
|
|
type = lib.types.bool;
|
|
|
|
example = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
cfg = config.materus.profile.nixpkgs;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.materus.profile.nixpkgs.enable = mkBoolOpt false "Enable materus nixpkgs config";
|
|
|
|
options.materus.profile.nixpkgs.enableOverlays = mkBoolOpt (cfg.enable) "Enable materus overlays";
|
|
|
|
|
|
|
|
config.nixpkgs.config = lib.mkIf cfg.enable{
|
|
|
|
allowUnfree = lib.mkDefault true;
|
|
|
|
joypixels.acceptLicense = lib.mkDefault true;
|
2023-10-08 16:12:00 +02:00
|
|
|
firefox.enablePlasmaBrowserIntegration = true;
|
2023-10-08 11:42:08 +02:00
|
|
|
};
|
2024-03-02 19:51:38 +01:00
|
|
|
config.nixpkgs.overlays = lib.mkIf cfg.enableOverlays [materusArg.cfg.configInputs.emacs-overlay.overlay];
|
2023-10-08 11:42:08 +02:00
|
|
|
}
|