From faf0cf691cb58b672e200386f24bcf4e51313d65 Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 14 Jun 2022 14:20:54 -0700 Subject: [PATCH] re-enable the `nix` command (`nix build`, `nix flake`, etc) it was accidentally disabled in in the move away from configuration.nix --- modules/universal/default.nix | 2 +- modules/universal/{nix-cache.nix => nix.nix} | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) rename modules/universal/{nix-cache.nix => nix.nix} (77%) diff --git a/modules/universal/default.nix b/modules/universal/default.nix index 4aaec0a1..5cf409b0 100644 --- a/modules/universal/default.nix +++ b/modules/universal/default.nix @@ -4,7 +4,7 @@ imports = [ ./fs.nix ./home-manager.nix - ./nix-cache.nix + ./nix.nix ./secrets.nix ./users.nix ./vpn.nix diff --git a/modules/universal/nix-cache.nix b/modules/universal/nix.nix similarity index 77% rename from modules/universal/nix-cache.nix rename to modules/universal/nix.nix index d3345329..3c2f4b59 100644 --- a/modules/universal/nix-cache.nix +++ b/modules/universal/nix.nix @@ -13,4 +13,9 @@ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; }; + + # allow `nix flake ...` command + nix.extraOptions = '' + experimental-features = nix-command flakes + ''; }