Files
sydnix/modules/nixos/nixpkgs.nix
Madeleine Sydney Ślaga bec92689f7
All checks were successful
build / build (push) Successful in 4m10s
fix(emacs): haskell cache
2026-04-24 12:49:35 -06:00

37 lines
993 B
Nix

{ config, lib, pkgs, ... }:
let cfg = config.sydnix.nixpkgs;
in {
options.sydnix.nixpkgs = {
enable = lib.mkEnableOption "some default Nixpkgs settings" // {
default = true;
};
};
config = lib.mkIf cfg.enable {
nixpkgs.config.allowUnfree = true;
nix = {
settings = {
allow-import-from-derivation = true;
trusted-users = [
"@wheel"
];
substituters = [
"https://cache.deertopia.net"
"https://nix-community.cachix.org"
"https://cache.nixos.org"
"https://cache.iog.io"
"https://cache.zw3rk.com"
];
trusted-public-keys = [
(builtins.readFile ../../public-keys/deertopia-cache.pub.pem)
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
"loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk="
];
};
};
};
}