2023-05-18 12:07:07 +02:00
|
|
|
{ config, pkgs, lib, inputs, materusPkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.materus.profile.nix;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.materus.profile.nix.enable = materusPkgs.lib.mkBoolOpt false "Enable materus nix settings";
|
|
|
|
config.nix = lib.mkIf cfg.enable {
|
|
|
|
package = pkgs.nixVersions.unstable;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
experimental-features = [ "nix-command" "flakes" "repl-flake" "no-url-literals" ];
|
|
|
|
auto-optimise-store = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
substituters = [
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
"https://cache.nixos.org/"
|
2023-05-19 03:09:29 +02:00
|
|
|
"https://nixerus.cachix.org/"
|
2023-05-18 12:07:07 +02:00
|
|
|
];
|
2023-05-19 03:09:29 +02:00
|
|
|
trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nixerus.cachix.org-1:2x7sIG7y1vAoxc8BNRJwsfapZsiX4hIl4aTi9V5ZDdE="];
|
2023-05-18 12:07:07 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|