Files
dotfiles/hosts/nix.nix
2024-05-28 05:14:11 +05:30

33 lines
790 B
Nix

{ config, pkgs, self, ... }:
{
nixpkgs = {
config = {
allowUnfree = true;
allowBroken = true;
allowInsecure = true;
};
overlays = [
self.overlays.default
];
};
nix = {
extraOptions = ''
experimental-features = nix-command flakes
'';
settings = {
auto-optimise-store = true;
trusted-users = [ "root" "natto" ];
substituters = [
"https://nix-gaming.cachix.org"
"https://nix-community.cachix.org"
# "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
];
trusted-public-keys = [
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
};
}