mirror of
https://github.com/divnix/digga.git
synced 2024-10-04 02:27:45 +03:00
nixConfig: setup the nix configuration
Users may not have setup their nix correctly. This ensures they have the proper features and caches setup when they use this repo. We currently have not entire clarity wether all `nixConig` flake options work. At some point in time `nix` support was limited. Therefore, we implement an NIX_CONFIG fallback (at least) in the devshell supersedes #69
This commit is contained in:
parent
4a4a6ee1c1
commit
5eb849f0f6
@ -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";
|
||||
|
10
shell.nix
10
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:
|
||||
|
Loading…
Reference in New Issue
Block a user