configuration.nix/common/nix.nix

25 lines
681 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
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
nix = {
2023-08-14 20:47:09 +05:30
package = pkgs.nixFlakes;
2023-11-04 16:12:45 +05:30
nixPath = [ "nixpkgs=/etc/nix/inputs/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 = [
"https://nix-community.cachix.org/"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
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
};
}