nixos-config/profiles/nix/default.nix
2021-09-28 01:49:57 +03:00

36 lines
1.0 KiB
Nix

{ config, lib, pkgs, inputs, ... }: {
nix = rec {
nixPath = lib.mkForce [ "self=/etc/self/compat" "nixpkgs=/etc/nixpkgs" ];
binaryCaches = [
"https://cache.nixos.org"
"https://nixos-rocm.cachix.org"
"https://nix-community.cachix.org"
];
binaryCachePublicKeys = [
"nixos-rocm.cachix.org-1:VEpsf7pRIijjd8csKjFNBGzkBqOmw8H9PRmgAq14LnE="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
registry.self.flake = inputs.self;
registry.nixpkgs.flake = inputs.nixpkgs;
trustedUsers = [ "root" "alukard" "@wheel" ];
optimise.automatic = true;
autoOptimiseStore = false;
package = inputs.nix.packages.x86_64-linux.nix.overrideAttrs (oa: {
patches = [ ./nix.patch ./flakes.patch ] ++ oa.patches or [];
});
extraOptions = ''
experimental-features = nix-command flakes
'';
requireSignedBinaryCaches = true;
};
environment.etc.nixpkgs.source = inputs.nixpkgs;
environment.etc.self.source = inputs.self;
}