configuration.nix/common/nix.nix

29 lines
864 B
Nix
Raw Normal View History

2023-11-04 16:12:45 +05:30
{ nixpkgs
, pkgs
, ...
2023-08-14 20:47:09 +05:30
}: {
2023-05-28 22:41:04 +05:30
nix = {
2023-08-14 20:47:09 +05:30
package = pkgs.nixFlakes;
2024-05-29 18:28:59 +05:30
nixPath = [ "nixpkgs=${nixpkgs}" ];
2023-05-28 22:41:04 +05:30
registry.nixpkgs.flake = nixpkgs;
settings = {
2023-08-14 20:47:09 +05:30
auto-optimise-store = true;
2023-11-04 16:12:45 +05:30
experimental-features = [ "nix-command" "flakes" "auto-allocate-uids" "cgroups" "ca-derivations" ];
2023-08-14 20:47:09 +05:30
auto-allocate-uids = true;
2023-09-16 01:45:59 +05:30
sandbox = true;
2023-05-28 22:41:04 +05:30
trusted-substituters = [
2024-05-25 23:16:19 +05:30
"https://varnam-nix.cachix.org"
2024-04-26 10:29:37 +05:30
"https://nix-community.cachix.org"
2024-05-12 15:33:58 +05:30
"https://cache.nixos.org"
2023-05-28 22:41:04 +05:30
];
trusted-public-keys = [
2024-05-25 23:16:19 +05:30
"varnam-nix.cachix.org-1:IduaZzaMOJmY32L11e+a4fDDq6Xnq9/NcocAPcIbX9Y="
2023-05-28 22:41:04 +05:30
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
2024-05-12 15:33:58 +05:30
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
2023-05-28 22:41:04 +05:30
];
2024-02-29 15:29:28 +05:30
trusted-users = [ "@wheel" ];
2023-09-16 01:45:59 +05:30
use-cgroups = true;
2023-05-28 22:41:04 +05:30
};
2023-03-15 22:11:59 +05:30
};
}