diff --git a/flake.nix b/flake.nix index 85c25df..af40abd 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,10 @@ { description = "DevOS environment configuriguration library."; + nixConfig.extra-experimental-features = "nix-command flakes ca-references"; + nixConfig.extra-substituters = "https://nrdxp.cachix.org https://nix-community.cachix.org"; + nixConfig.extra-trusted-public-keys = "nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="; + inputs = { nixpkgs.url = "github:nixos/nixpkgs/release-21.05"; diff --git a/shell.nix b/shell.nix index cb481ff..4b87b86 100644 --- a/shell.nix +++ b/shell.nix @@ -71,6 +71,16 @@ devshell.mkShell { nixUnstable ]; + env = [ + { + name = "NIX_CONFIG"; + value = + ''extra-experimental-features = nix-command flakes ca-references + extra-substituters = https://nrdxp.cachix.org https://nix-community.cachix.org + extra-trusted-public-keys = nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=''; + } + ]; + # tempfix: remove when merged https://github.com/numtide/devshell/pull/123 devshell.startup.load_profiles = pkgs.lib.mkForce (pkgs.lib.noDepEntry '' # PATH is devshell's exorbitant privilige: