mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-02-23 13:42:05 +00:00
70 lines
1.9 KiB
Nix
70 lines
1.9 KiB
Nix
# This is the meta config file for nixpkgs and nix cli itself, including
|
|
# trusted keys for cachnix caches
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
# Adopted from https://fnordig.de/til/nix/home-manager-allow-unfree.html,
|
|
# but we'll also enable it system-wide too.
|
|
nixpkgs = {
|
|
config = {
|
|
allowUnfree = true;
|
|
# https://github.com/nix-community/home-manager/issues/2942
|
|
allowUnfreePredicate = (_: true);
|
|
};
|
|
};
|
|
|
|
nix = {
|
|
settings = {
|
|
# See https://nix.dev/manual/nix/latest/development/experimental-features
|
|
# for latest supported feature flags.
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
"ca-derivations"
|
|
"cgroups"
|
|
"impure-derivations"
|
|
"git-hashing"
|
|
"fetch-tree"
|
|
"fetch-closure"
|
|
"local-overlay-store"
|
|
"mounted-ssh-store"
|
|
# "verified-fetches"
|
|
];
|
|
|
|
trusted-users = [
|
|
"root"
|
|
"gildedguy"
|
|
"ajhalili2006"
|
|
];
|
|
|
|
# just sync with trusted-users, but w/o root
|
|
allowed-users = [
|
|
"gildedguy"
|
|
"ajhalili2006"
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
# devenv.sh
|
|
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
|
|
|
# my caches for nixos and nixpkgs related builds (including devenvs)
|
|
"ajhalili2006-nixos-builds.cachix.org-1:fA8HXvGR1i792D+CxL2iW/TQzUcyoW7zPUmC9Q4mQLg="
|
|
|
|
# the main cache itself
|
|
"andreijiroh-dev.cachix.org-1:7Jd0STdBOLiNu5fiA+AKwcMqQD2PA1j9zLDGyDkuyBo="
|
|
|
|
# recaptime.dev cache
|
|
"recaptime-dev.cachix.org-1:b0UBO1zONf6ceTIoR06AKhgid4ZOl5kxB/gOIdZ9J6g="
|
|
];
|
|
|
|
# also list them all too
|
|
trusted-substituters = [
|
|
"https://devenv.cachix.org"
|
|
"https://andreijiroh-dev.cachix.org"
|
|
"https://ajhalili2006-nixos-builds.cachix.org"
|
|
"https://recaptime-dev.cachix.org"
|
|
];
|
|
};
|
|
};
|
|
}
|