nixos-config/configurations/profile/os/nix.nix

23 lines
750 B
Nix
Raw Normal View History

{ config, pkgs, lib, materusArg, ... }:
2023-10-08 11:42:08 +02:00
let
cfg = config.materus.profile.nix;
in
{
options.materus.profile.nix.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable materus nix settings";
2023-10-08 11:42:08 +02:00
config.nix = lib.mkIf cfg.enable {
settings = {
experimental-features = [ "nix-command" "flakes" "repl-flake" "no-url-literals" ];
auto-optimise-store = true;
trusted-users = [ "root" "@wheel" ];
substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
"https://nixerus.cachix.org/"
];
2024-03-11 16:19:31 +01:00
trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nixerus.cachix.org-1:2x7sIG7y1vAoxc8BNRJwsfapZsiX4hIl4aTi9V5ZDdE=" ];
2023-10-08 11:42:08 +02:00
};
};
}